* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <assert.h>
#include <vlc/libvlc.h>
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( libvlc_exception_raised( p_e ) )
return;
- input_Read( p_mlist->p_libvlc_instance->p_libvlc_int, p_input_item, true );
+ input_Read( p_mlist->p_libvlc_instance->p_libvlc_int, p_input_item );
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;
}