emotion/libvlc: fix url opening
authorThomas Guillem <thomas@gllm.fr>
Fri, 25 Mar 2016 08:05:40 +0000 (09:05 +0100)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 28 Mar 2016 07:40:02 +0000 (16:40 +0900)
src/modules/emotion/libvlc/emotion_libvlc.c

index d9500cd..c550551 100644 (file)
@@ -443,6 +443,11 @@ em_file_open(void *video,
 
    /* Create libvlc_media */
    ev->m = libvlc_media_new_path(libvlc, file);
+   if (strstr(file, "://") == NULL)
+     ev->m = libvlc_media_new_path(libvlc, file);
+   else
+     ev->m = libvlc_media_new_location(libvlc, file);
+
    EINA_SAFETY_ON_NULL_GOTO(ev->m, error);
 
    if (ev->opt.no_audio || ev->audio_mute)