]> git.sesse.net Git - vlc/commitdiff
live555: support for subtitle tracks
authorPierre Ynard <linkfanel@yahoo.fr>
Mon, 28 Sep 2009 10:03:32 +0000 (12:03 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Mon, 28 Sep 2009 10:03:32 +0000 (12:03 +0200)
T.140 support will be included in the next release of live555

modules/demux/live555.cpp

index 1b35afa0c29c51e5ba9fa9c2e51942491a3959a7..118360699380b8e3f8ff5a42a29ae0da676e5ce3 100644 (file)
@@ -694,6 +694,8 @@ static int SessionsSetup( demux_t *p_demux )
             i_buffer = 100000;
         else if( !strcmp( sub->mediumName(), "video" ) )
             i_buffer = 2000000;
+        else if( !strcmp( sub->mediumName(), "text" ) )
+            ;
         else continue;
 
         if( i_client_port != -1 )
@@ -1003,6 +1005,15 @@ static int SessionsSetup( demux_t *p_demux )
                                                        p_demux->out );
                 }
             }
+            else if( !strcmp( sub->mediumName(), "text" ) )
+            {
+                es_format_Init( &tk->fmt, SPU_ES, VLC_FOURCC('u','n','d','f') );
+
+                if( !strcmp( sub->codecName(), "T140" ) )
+                {
+                    tk->fmt.i_codec = VLC_CODEC_ITU_T140;
+                }
+            }
 
             if( !tk->b_quicktime && !tk->b_muxed && !tk->b_asf )
             {