]> git.sesse.net Git - vlc/blobdiff - test/libvlc/libvlc_additions.h
Merge branch 'master' of git://git.videolan.org/vlc
[vlc] / test / libvlc / libvlc_additions.h
index e029ad748b30e14196e0e5a5a02b1b7071923f45..a81787e4f24e5ddb58ae153d2cfb25213a635508 100644 (file)
 
 static void* media_list_add_file_path(libvlc_instance_t *vlc, libvlc_media_list_t *ml, const char * file_path)
 {
-    libvlc_media_t *md = libvlc_media_new (vlc, file_path, &ex);
-    catch ();
-    
-    libvlc_media_list_add_media (ml, md, &ex);
-    catch ();
-    
+    libvlc_media_t *md = libvlc_media_new_location (vlc, file_path);
+    libvlc_media_list_add_media (ml, md);
     libvlc_media_release (md);
     return md;
 }