jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3f1686d01e4f3a23c125afb4a9bb89106609c303

commit 3f1686d01e4f3a23c125afb4a9bb89106609c303
Author: Thomas Guillem <tho...@gllm.fr>
Date:   Fri Mar 25 09:05:40 2016 +0100

    emotion/libvlc: fix url opening
---
 src/modules/emotion/libvlc/emotion_libvlc.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/modules/emotion/libvlc/emotion_libvlc.c 
b/src/modules/emotion/libvlc/emotion_libvlc.c
index d9500cd..c550551 100644
--- a/src/modules/emotion/libvlc/emotion_libvlc.c
+++ b/src/modules/emotion/libvlc/emotion_libvlc.c
@@ -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)

-- 


Reply via email to