stefan pushed a commit to branch master.

commit ed08c1832c897da7c3f20d66ffadc1e6e3ce6566
Author: Stefan Schmidt <[email protected]>
Date:   Tue Jul 2 09:42:35 2013 +0100

    emotion: Another check for engine being NULL.
    
    Missed this second occurance in 8deb75463bdb7f8aaa45bebdd3d1570655b66043.
    Now also fixed this potential null pointer dereference when the engine
    list is empty.
---
 src/modules/emotion/gstreamer/emotion_sink.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/modules/emotion/gstreamer/emotion_sink.c 
b/src/modules/emotion/gstreamer/emotion_sink.c
index 7cf66be..c238868 100644
--- a/src/modules/emotion/gstreamer/emotion_sink.c
+++ b/src/modules/emotion/gstreamer/emotion_sink.c
@@ -1086,6 +1086,8 @@ _image_resize(void *data, Evas *e EINA_UNUSED, 
Evas_Object *obj, void *event_inf
                }
           }
 
+        if (!engine) return;
+
         if (strstr(engine, "software") != NULL)
           {
              caps = gst_caps_new_simple("video/x-raw-rgb",

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to