summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-04 21:09:17 +0100
committerwm4 <wm4@nowhere>2014-12-04 22:42:07 +0100
commite1788384cc0a00fb6c6e817eccf96cc39abc39ad (patch)
tree2ef52ed90c12e90fc8e4156888a1eeddf41c7ca3 /demux
parentb723cab19d306f4f2a42895f1c1fec14650400fb (diff)
downloadmpv-e1788384cc0a00fb6c6e817eccf96cc39abc39ad.tar.bz2
mpv-e1788384cc0a00fb6c6e817eccf96cc39abc39ad.tar.xz
demux: explicitly wake up playback thread on metadata change etc.
Probably doesn't matter much in practice.
Diffstat (limited to 'demux')
-rw-r--r--demux/demux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c
index a100149a48..55242caec6 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -777,6 +777,8 @@ void demux_changed(demuxer_t *demuxer, int events)
demux_copy(in->d_buffer, demuxer);
+ if (in->wakeup_cb)
+ in->wakeup_cb(in->wakeup_cb_ctx);
pthread_mutex_unlock(&in->lock);
}