diff options
author | wm4 <wm4@nowhere> | 2014-04-09 19:01:32 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-09 19:01:32 +0200 |
commit | d6c4b35b0b89900cbfc521639a9750ed539ffab5 (patch) | |
tree | 3ce7fad937c6f7af462affbf4ee6d10f211eb336 | |
parent | 4f689258cbb6900980faa99affbd4a43250bdbe2 (diff) | |
download | mpv-d6c4b35b0b89900cbfc521639a9750ed539ffab5.tar.bz2 mpv-d6c4b35b0b89900cbfc521639a9750ed539ffab5.tar.xz |
cache: always update cached controls after running a stream control
Seems like a good idea. One possible bad effect would be slowing down
uncached controls, but they're already slow. The good thing is that
many controls make intrusive changes to the stream (at least controls
which do write accesses), so the cached parameters should be updated.
-rw-r--r-- | stream/cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/cache.c b/stream/cache.c index 56d9220dfd..8f17f981e8 100644 --- a/stream/cache.c +++ b/stream/cache.c @@ -434,6 +434,7 @@ static void cache_execute_control(struct priv *s) cache_drop_contents(s); } + update_cached_controls(s); s->control = CACHE_CTRL_NONE; pthread_cond_signal(&s->wakeup); } |