if( !p_input ) return NULL;
- var_Get( p_input, "spu-channel", &val );
+ if( var_Get( p_input, "spu-channel", &val ) ) {
+ vlc_object_release( p_input );
+ return NULL;
+ }
+
vlc_object_release( p_input );
/* Number could be 0bd, 1bd, 2bd, 3bd for 0..3. If so
p_buffer[1], p_buffer[2], p_buffer[3], p_buffer[4],
p_block->i_buffer);
-#if 0
- if( config_GetInt( p_dec, "spu-channel" ) != p_buffer[1] )
- return NULL;
-#else
/* Attach to our input thread and see if subtitle is selected. */
{
vlc_object_t * p_input;
if( !p_input ) return NULL;
- if( var_Get( p_input, "spu-channel", &val ) ) return NULL;
+ if( var_Get( p_input, "spu-channel", &val ) ) {
+ vlc_object_release( p_input );
+ return NULL;
+ }
+ vlc_object_release( p_input );
dbg_print( (DECODE_DBG_PACKET),
"val.i_int %x p_buffer[i] %x", val.i_int, p_buffer[1]);
return NULL;
}
}
-#endif
if ( p_sys->state == SUBTITLE_BLOCK_EMPTY ) {
i_expected_image = p_sys->i_image+1;