[vlc-commits] vout: vout_DisableWindow should not release video decoder device
Quentin Chateau
git at videolan.org
Mon Mar 2 14:19:19 CET 2020
vlc | branch: master | Quentin Chateau <quentin.chateau at deepskycorp.com> | Mon Mar 2 10:52:51 2020 +0100| [bddcec3dc44c317d365d17627ee8884f4e59d811] | committer: Steve Lhomme
vout: vout_DisableWindow should not release video decoder device
Now we can create a decoder device on a disabled (or not yet enabled) window so
we don't need to match the destruction with the enable/disable of the window.
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bddcec3dc44c317d365d17627ee8884f4e59d811
---
src/video_output/video_output.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 229b010a96..a711d302af 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1786,11 +1786,6 @@ static void vout_DisableWindow(vout_thread_t *vout)
{
vout_thread_sys_t *sys = vout->p;
vlc_mutex_lock(&sys->window_lock);
- if (sys->dec_device)
- {
- vlc_decoder_device_Release(sys->dec_device);
- sys->dec_device = NULL;
- }
if (sys->window_enabled) {
vout_window_Disable(sys->display_cfg.window);
sys->window_enabled = false;
More information about the vlc-commits
mailing list