Commit 56c32065 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix return values for spu_Create() and spu_Init().

parent 072bd8fc
......@@ -2857,8 +2857,7 @@ static int transcode_osd_new( sout_stream_t *p_stream, sout_stream_id_t *id )
if( !p_sys->p_spu )
{
p_sys->p_spu = spu_Create( p_stream );
if( spu_Init( p_sys->p_spu ) != VLC_SUCCESS )
msg_Err( p_sys, "spu initialisation failed" );
spu_Init( p_sys->p_spu );
}
return VLC_SUCCESS;
......@@ -2902,8 +2901,7 @@ static int transcode_osd_process( sout_stream_t *p_stream,
if( !p_sys->p_spu )
{
p_sys->p_spu = spu_Create( p_stream );
if( spu_Init( p_sys->p_spu ) != VLC_SUCCESS )
msg_Err( p_stream, "spu initialisation failed" );
spu_Init( p_sys->p_spu );
}
}
......
......@@ -114,7 +114,7 @@ int spu_Init( spu_t *p_spu )
spu_ParseChain( p_spu );
return VLC_EGENERIC;
return VLC_SUCCESS;
}
int spu_ParseChain( spu_t *p_spu )
......@@ -167,7 +167,7 @@ int spu_ParseChain( spu_t *p_spu )
}
if( val.psz_string ) free( val.psz_string );
return VLC_EGENERIC;
return VLC_SUCCESS;
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment