dropped-frame tracke
This commit is contained in:
@@ -14,6 +14,7 @@ func runSyncAttempt(
|
||||
videoConfig FeedConfig,
|
||||
audioConfig FeedConfig,
|
||||
) (resultErr error) {
|
||||
videoCtx := withVideoSource(ctx, videoConfig)
|
||||
reader, err := factory.OpenSync(
|
||||
ctx,
|
||||
videoConfig,
|
||||
@@ -39,7 +40,7 @@ func runSyncAttempt(
|
||||
return fmt.Errorf("read sync group: %w", err)
|
||||
}
|
||||
|
||||
if err := videoSink.ConsumeVideo(ctx, frame.Video); err != nil {
|
||||
if err := videoSink.ConsumeVideo(videoCtx, frame.Video); err != nil {
|
||||
if ctx.Err() != nil {
|
||||
return ctx.Err()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user