From ded02bb78cce4ec6e6f7ffb5a4070024a503f814 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 20 Jul 2014 00:19:58 +0200 Subject: demux: make the cache refresh cached STREAM_CTRLs This fixes the same symptom as the previous commit, but when the demuxer thread is enabled. In this case, if nothing was read from the demuxer, the STREAM_CTRLs weren't updated either. To the player, this looked like the stream cache was never making progress, so playback was kept paused. --- demux/demux.c | 1 + 1 file changed, 1 insertion(+) (limited to 'demux') diff --git a/demux/demux.c b/demux/demux.c index 927c8488e2..b9dc232a79 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -1105,6 +1105,7 @@ int demux_control(demuxer_t *demuxer, int cmd, void *arg) pthread_mutex_lock(&in->lock); if (!in->threading) update_cache(in); + pthread_cond_signal(&in->wakeup); int cr = cached_demux_control(in, cmd, arg); if (cr != DEMUXER_CTRL_DONTKNOW) { pthread_mutex_unlock(&in->lock); -- cgit v1.2.3