summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-11-03 16:36:59 +0100
committerwm4 <wm4@nowhere>2017-11-03 16:36:59 +0100
commitd46c9c2e62d37f5d4909205585b2b36aa732e025 (patch)
tree600af8cc1f4d8e326997854b8819d8f1221afe52
parent49ae599883a2c61143ec728dd45f1827c2e878b2 (diff)
downloadmpv-d46c9c2e62d37f5d4909205585b2b36aa732e025.tar.bz2
mpv-d46c9c2e62d37f5d4909205585b2b36aa732e025.tar.xz
demux: on queue overflow wake up reader thread on EOF only
This seems to make more sense.
-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;
}