[vlc-commits] es_out: RESTART_ALL_ES: restart only selected es

Thomas Guillem git at videolan.org
Fri Jan 19 17:58:29 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 19 16:24:09 2018 +0100| [4c2b909cb223484b305a360c32ab98d2b1c583d9] | committer: Thomas Guillem

es_out: RESTART_ALL_ES: restart only selected es

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

 src/input/es_out.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index d1c8d9a4b1..e5c43868a5 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2380,8 +2380,11 @@ static int EsOutControlLocked( es_out_t *out, int i_query, va_list args )
     {
         for( int i = 0; i < p_sys->i_es; i++ )
         {
-            EsDestroyDecoder( out, p_sys->es[i] );
-            EsCreateDecoder( out, p_sys->es[i] );
+            if( EsIsSelected( p_sys->es[i] ) )
+            {
+                EsDestroyDecoder( out, p_sys->es[i] );
+                EsCreateDecoder( out, p_sys->es[i] );
+            }
         }
         return VLC_SUCCESS;
     }



More information about the vlc-commits mailing list