diff options
author | wm4 <wm4@nowhere> | 2014-12-04 21:09:17 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-04 22:42:07 +0100 |
commit | e1788384cc0a00fb6c6e817eccf96cc39abc39ad (patch) | |
tree | 2ef52ed90c12e90fc8e4156888a1eeddf41c7ca3 /demux | |
parent | b723cab19d306f4f2a42895f1c1fec14650400fb (diff) | |
download | mpv-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.c | 2 |
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); } |