]> git.sesse.net Git - vlc/blobdiff - modules/demux/subtitle.c
Let HandleMeta return ret instead of 0, why else would we bother setting it.
[vlc] / modules / demux / subtitle.c
index 426659c924f6b023e0dd6c970e6bd1781b05ab1f..4faaa9cdcc473b7f4fdfc113fc0ff102b5cca1de 100644 (file)
@@ -518,11 +518,11 @@ static int Open ( vlc_object_t *p_this )
              p_sys->i_type == SUB_TYPE_SSA2_4 ||
              p_sys->i_type == SUB_TYPE_ASS )
     {
-        es_format_Init( &fmt, SPU_ES, VLC_FOURCC( 's','s','a',' ' ) );
+        es_format_Init( &fmt, SPU_ES, VLC_CODEC_SSA );
     }
     else
     {
-        es_format_Init( &fmt, SPU_ES, VLC_FOURCC( 's','u','b','t' ) );
+        es_format_Init( &fmt, SPU_ES, VLC_CODEC_SUBT );
     }
     if( p_sys->psz_header != NULL )
     {