raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=52b525071333f54d00a4ed366a974ec6c9c0d8ae

commit 52b525071333f54d00a4ed366a974ec6c9c0d8ae
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sat Aug 23 19:20:16 2014 +0900

    emotion gst1 - stop complaining about null uri
---
 src/modules/emotion/gstreamer1/emotion_gstreamer.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/modules/emotion/gstreamer1/emotion_gstreamer.c 
b/src/modules/emotion/gstreamer1/emotion_gstreamer.c
index b84f8cd..6906563 100644
--- a/src/modules/emotion/gstreamer1/emotion_gstreamer.c
+++ b/src/modules/emotion/gstreamer1/emotion_gstreamer.c
@@ -114,8 +114,11 @@ em_file_open(void *video,
 
    DBG("setting file to '%s'", uri);
 
-   if (gst_uri_is_valid(ev->subtitle)) suburi = strdup(ev->subtitle);
-   else suburi = gst_filename_to_uri(ev->subtitle, NULL);
+   if (ev->subtitle)
+     {
+        if (gst_uri_is_valid(ev->subtitle)) suburi = strdup(ev->subtitle);
+        else suburi = gst_filename_to_uri(ev->subtitle, NULL);
+     }
    ev->pipeline = _create_pipeline(ev, ev->obj, uri, suburi);
    g_free(uri);
 

-- 


Reply via email to