dropped-frame tracke
This commit is contained in:
@@ -6,7 +6,9 @@ import (
|
||||
)
|
||||
|
||||
type PendingVideoFrame struct {
|
||||
Frame VideoFrame
|
||||
Frame VideoFrame
|
||||
Generation uint64
|
||||
Source FeedConfig
|
||||
|
||||
completeOnce sync.Once
|
||||
result chan error
|
||||
@@ -27,8 +29,10 @@ func (b *VideoBridge) ConsumeVideo(
|
||||
frame VideoFrame,
|
||||
) error {
|
||||
pending := &PendingVideoFrame{
|
||||
Frame: frame,
|
||||
result: make(chan error, 1),
|
||||
Frame: frame,
|
||||
Generation: generationFromContext(ctx),
|
||||
Source: videoSourceFromContext(ctx),
|
||||
result: make(chan error, 1),
|
||||
}
|
||||
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user