[vlc-commits] es_out: also send es event when automatically unselected

Thomas Guillem git at videolan.org
Thu Oct 11 14:41:45 CEST 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Oct 11 14:34:40 2018 +0200| [62cd2bb630a3c7507a170a6536c1964c4e50b315] | committer: Thomas Guillem

es_out: also send es event when automatically unselected

Before, we always assumed the most common case: if you select an ES, you
unselect the old one automatically. This behavior is configurable (via
es_out_policy_e) and is not always true. Therefore, the es_out should always
send an event for consistency, in order to know if a track was really
unselected or not.

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

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

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 5b1089eedb..7e1480fad4 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -1943,7 +1943,7 @@ static void EsOutSelect( es_out_t *out, es_out_id_t *es, bool b_force )
         if( !EsIsSelected( es ) )
         {
             if( b_auto_unselect )
-                EsOutUnselectEs( out, p_esprops->p_main_es, false );
+                EsOutUnselectEs( out, p_esprops->p_main_es, true );
 
             EsOutSelectEs( out, es );
         }
@@ -2049,7 +2049,7 @@ static void EsOutSelect( es_out_t *out, es_out_id_t *es, bool b_force )
         if( wanted_es == es && !EsIsSelected( es ) )
         {
             if( b_auto_unselect )
-                EsOutUnselectEs( out, p_esprops->p_main_es, false );
+                EsOutUnselectEs( out, p_esprops->p_main_es, true );
 
             EsOutSelectEs( out, es );
         }



More information about the vlc-commits mailing list