[vlc-commits] resource: fix extra vout closed without being stopped

Thomas Guillem git at videolan.org
Tue Feb 25 15:42:33 CET 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 21 16:07:02 2020 +0100| [d5e349719c1e3aa02829a2bda868b5b84787af2a] | committer: Thomas Guillem

resource: fix extra vout closed without being stopped

It happens when more than one video tracks is selected.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d5e349719c1e3aa02829a2bda868b5b84787af2a
---

 src/input/resource.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/input/resource.c b/src/input/resource.c
index 65906da287..dc71367b6f 100644
--- a/src/input/resource.c
+++ b/src/input/resource.c
@@ -350,6 +350,7 @@ static void input_resource_PutVoutLocked(input_resource_t *p_resource,
 
         TAB_REMOVE(p_resource->i_vout, p_resource->pp_vout, vout);
         vlc_mutex_unlock(&p_resource->lock_hold);
+        vout_Stop(vout);
         vout_Close(vout);
     }
 }



More information about the vlc-commits mailing list