mirror of
https://github.com/samsonjs/media.git
synced 2026-04-01 10:35:48 +00:00
Fix not setting videoEffect in CompositingVSP
The current code only set the videoEffects when CVSP is initialized, which happens after `player.prepare()`. But it's valid that videoEffects are set before calling `prepare()`. PiperOrigin-RevId: 566941216
This commit is contained in:
parent
234f7525f0
commit
67900c3e81
1 changed files with 5 additions and 3 deletions
|
|
@ -88,12 +88,14 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
|||
try {
|
||||
videoSinkImpl =
|
||||
new VideoSinkImpl(context, videoFrameProcessorFactory, renderControl, sourceFormat);
|
||||
if (videoFrameMetadataListener != null) {
|
||||
videoSinkImpl.setVideoFrameMetadataListener(videoFrameMetadataListener);
|
||||
}
|
||||
} catch (VideoFrameProcessingException e) {
|
||||
throw new VideoSink.VideoSinkException(e, sourceFormat);
|
||||
}
|
||||
|
||||
if (videoFrameMetadataListener != null) {
|
||||
videoSinkImpl.setVideoFrameMetadataListener(videoFrameMetadataListener);
|
||||
}
|
||||
videoSinkImpl.setVideoEffects(checkNotNull(videoEffects));
|
||||
}
|
||||
|
||||
/** Returns whether this provider is initialized for frame processing. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue