if( !p_mlist||p_mlist->b_read_only )
{
/* We are read-only from user side */
- libvlc_exception_raise( p_e, "Cannot write to read-only media list." );
+ libvlc_exception_raise( p_e );
+ libvlc_printerr( "Attempt to write a read-only media list" );
return 0;
}
return 1;
if( !p_input_item )
{
- libvlc_exception_raise( p_e, "Can't create an input item" );
+ libvlc_exception_raise( p_e );
+ libvlc_printerr( "Not enough memory" );
return;
}
if( index < 0 || index >= vlc_array_count( &p_mlist->items ))
{
- libvlc_exception_raise( p_e, "Index out of bounds");
+ libvlc_exception_raise( p_e );
+ libvlc_printerr( "Index out of bounds" );
return;
}
if( index < 0 || index >= vlc_array_count( &p_mlist->items ))
{
- libvlc_exception_raise( p_e, "Index out of bounds");
+ libvlc_exception_raise( p_e );
+ libvlc_printerr( "Index out of bounds" );
return NULL;
}