From d6c4b35b0b89900cbfc521639a9750ed539ffab5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 9 Apr 2014 19:01:32 +0200 Subject: 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. --- stream/cache.c | 1 + 1 file changed, 1 insertion(+) (limited to 'stream/cache.c') 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); } -- cgit v1.2.3