[vlc-devel] [RFC PATCHv2 13/18] demux: vobsub: use stable id

Thomas Guillem thomas at gllm.fr
Tue Feb 18 17:11:26 CET 2020


Use the vob track identifier.
---
 modules/demux/vobsub.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/vobsub.c b/modules/demux/vobsub.c
index 1597c4109c8..157264612b8 100644
--- a/modules/demux/vobsub.c
+++ b/modules/demux/vobsub.c
@@ -547,6 +547,7 @@ static int ParseVobSubIDX( demux_t *p_demux )
                 memcpy( &fmt.subs.spu.palette[1], p_sys->palette, 16 * sizeof( uint32_t ) );
             }
 
+            fmt.i_id = i_track_id;
             current_tk->p_es = es_out_Add( p_demux->out, &fmt );
             msg_Dbg( p_demux, "New vobsub track detected: %i [%s]", i_track_id, language );
         }
-- 
2.20.1



More information about the vlc-devel mailing list