mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-09 08:43:49 +02:00
Add Logging singleton to manually control Mediabunny's console output (fixes #415)
This commit is contained in:
+2
-1
@@ -54,6 +54,7 @@ import {
|
||||
VideoSample,
|
||||
VideoSamplePixelFormat,
|
||||
} from './sample';
|
||||
import { Logging } from './logging';
|
||||
|
||||
/**
|
||||
* Additional options for controlling packet retrieval.
|
||||
@@ -1324,7 +1325,7 @@ export class ColorAlphaMerger {
|
||||
this.gl = null;
|
||||
this.canvas = null;
|
||||
mergerGpuUnavailable = true;
|
||||
console.warn('Falling back to CPU for color/alpha merging.', error);
|
||||
Logging._warn('Falling back to CPU for color/alpha merging.', error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user