]> git.sesse.net Git - vlc/blobdiff - test/libvlc/media_player.c
LibVLC media: remove exceptions
[vlc] / test / libvlc / media_player.c
index 2137fa7210cc8176dea43a2d91f15486026a73d1..cec2cb938893d16f54684e6a0851544ba8c9c4cb 100644 (file)
@@ -36,8 +36,8 @@ static void test_media_player_play_stop(const char** argv, int argc)
     vlc = libvlc_new (argc, argv);
     assert (vlc != NULL);
 
-    md = libvlc_media_new (vlc, file, &ex);
-    catch ();
+    md = libvlc_media_new (vlc, file);
+    assert (md != NULL);
 
     mi = libvlc_media_player_new_from_media (md);
     assert (mi != NULL);
@@ -74,8 +74,8 @@ static void test_media_player_pause_stop(const char** argv, int argc)
     vlc = libvlc_new (argc, argv);
     assert (vlc != NULL);
 
-    md = libvlc_media_new (vlc, file, &ex);
-    catch ();
+    md = libvlc_media_new (vlc, file);
+    assert (md != NULL);
 
     mi = libvlc_media_player_new_from_media (md);
     assert (mi != NULL);