diff options
author | sfan5 <sfan5@live.de> | 2024-03-11 20:18:47 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2024-03-16 13:27:34 +0100 |
commit | 2893b7d0f51094bfee0cc27f3bebba8de0fd8018 (patch) | |
tree | 947977494ac60731500b1bc1b59d554cc81e739d /video/out/vo.c | |
parent | 44f54357caed30171b3721527d5d1c8389db6ad9 (diff) | |
download | mpv-2893b7d0f51094bfee0cc27f3bebba8de0fd8018.tar.bz2 mpv-2893b7d0f51094bfee0cc27f3bebba8de0fd8018.tar.xz |
vo: move target_params into responsibility of VO
The VO generic code tries to be helpful and resets this after
each reconfig. However for the simpler VOs the target params
are constant after a reconfig or even for the entire lifetime.
So it's clearly better to let the VO decide.
This also allows the VO to use a static buffer instead.
Diffstat (limited to 'video/out/vo.c')
-rw-r--r-- | video/out/vo.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/video/out/vo.c b/video/out/vo.c index 319e2c07fb..db29690950 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -614,10 +614,6 @@ static void run_reconfig(void *p) mp_mutex_unlock(&vo->params_mutex); } - mp_mutex_lock(&vo->params_mutex); - talloc_free(vo->target_params); - vo->target_params = NULL; - mp_mutex_unlock(&vo->params_mutex); mp_mutex_lock(&in->lock); talloc_free(in->current_frame); in->current_frame = NULL; |