emotion/libvlc: fix url opening

This commit is contained in:
Thomas Guillem 2016-03-25 09:05:40 +01:00 committed by Jean-Philippe Andre
parent b12c2a2cfd
commit 3f1686d01e
1 changed files with 5 additions and 0 deletions

View 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)