From d46c9c2e62d37f5d4909205585b2b36aa732e025 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 3 Nov 2017 16:36:59 +0100 Subject: demux: on queue overflow wake up reader thread on EOF only This seems to make more sense. --- demux/demux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demux/demux.c') diff --git a/demux/demux.c b/demux/demux.c index 2283a0773b..04b1b526ea 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -736,10 +736,10 @@ static bool read_packet(struct demux_internal *in) if (eof && !ds->eof) { if (in->wakeup_cb) in->wakeup_cb(in->wakeup_cb_ctx); + pthread_cond_signal(&in->wakeup); } ds->eof |= eof; } - pthread_cond_signal(&in->wakeup); return false; } -- cgit v1.2.3