return;
var_Change( p_input_thread, "audio-es", VLC_VAR_GETCHOICES, &val_list, NULL );
- if( (i_track < 0) && (i_track > val_list.p_list->i_count) )
+ if( (i_track < 0) || (i_track > val_list.p_list->i_count) )
{
libvlc_exception_raise( p_e, "Audio track out of range" );
goto end;
vlc_object_release( p_aout );
}
-
}
goto end;
}
- if( (i_spu < 0) && (i_spu > val_list.p_list->i_count) )
+ if( (i_spu < 0) || (i_spu > val_list.p_list->i_count) )
{
libvlc_exception_raise( p_e, "Subtitle value out of range" );
goto end;
vlc_object_release(marquee);
return isEnabled;
}
-
+
/* Generic case */
if(!identifier)
{
libvlc_exception_raise( p_e, "This option is not available" );
return 0;
}
-
+
vlc_object_t * marquee = get_marquee_object(p_mi);
if(!marquee)
{