[vlc-devel] [PATCH 3/3] Fix subtitle loss at segment change.

Denis Charmet typx at dinauz.org
Sun Sep 18 23:53:27 CEST 2011


---
 src/input/es_out.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index dd29f63..db65fa3 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2287,7 +2287,10 @@ static int EsOutControlLocked( es_out_t *out, int i_query, va_list args )
                     p_sys->i_default_audio_id = es->i_id;
                 else*/
                 if( es->fmt.i_cat == SPU_ES )
+                {
                     p_sys->i_default_sub_id = es->i_id;
+                    EsOutSelect( out, es, false );
+                }
             }
             return VLC_SUCCESS;
         }
-- 
1.7.5.4




More information about the vlc-devel mailing list