summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demux/demux.c2
1 files changed, 1 insertions, 1 deletions
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;
}