Assert.assertEquals(0, exception.raised);
}
-// @Test
- /**
- * This test is disabled: see https://trac.videolan.org/vlc/ticket/1524
- */
+ @Test
public void mediaListPlayerPlayNoItemTest()
{
libvlc_exception_t exception = new libvlc_exception_t();
LibVlcMediaListPlayer mediaListPlayer = libvlc.libvlc_media_list_player_new(libvlcInstance, exception);
libvlc.libvlc_media_list_player_play(mediaListPlayer, exception);
+ Assert.assertEquals(1, exception.raised);
}
}
libvlc_media_list_path_t ret;
libvlc_media_list_t * p_parent_of_playing_item;
libvlc_media_list_t * p_sublist_of_playing_item;
+
p_sublist_of_playing_item = libvlc_media_list_sublist_at_path(
p_mlp->p_mlist,
p_mlp->current_playing_item_path );
libvlc_exception_t * p_e )
{
libvlc_media_list_path_t path;
+
+ if (! p_mlp->p_mlist )
+ {
+ libvlc_exception_raise( p_e, "No more element to play" );
+ return;
+ }
libvlc_media_list_lock( p_mlp->p_mlist );