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

Thomas Guillem git at videolan.org
Fri Jan 19 18:44:22 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 19 16:24:09 2018 +0100| [48270777fc2700291bbcff78ecce45005629724c] | committer: Jean-Baptiste Kempf

es_out: RESTART_ALL_ES: restart only selected es

(cherry picked from commit 4c2b909cb223484b305a360c32ab98d2b1c583d9)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 e95dd49f76..9bcf6544e3 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2386,8 +2386,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