mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-29 06:45:47 +00:00
fftools/thread_queue: count receive-finished streams as finished
This ensures that tq_receive() will always return EOF after all streams were receive-finished, even though the sending side might not have closed them yet. This may allow the receiver to avoid manually tracking which streams it has already closed.
This commit is contained in:
parent
4f7b91a698
commit
87016e031f
@ -177,7 +177,7 @@ static int receive_locked(ThreadQueue *tq, int *stream_idx,
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < tq->nb_streams; i++) {
|
||||
if (!(tq->finished[i] & FINISHED_SEND))
|
||||
if (!tq->finished[i])
|
||||
continue;
|
||||
|
||||
/* return EOF to the consumer at most once for each stream */
|
||||
|
Loading…
Reference in New Issue
Block a user