stefan pushed a commit to branch master.
commit 8deb75463bdb7f8aaa45bebdd3d1570655b66043
Author: Stefan Schmidt <[email protected]>
Date: Tue Jun 25 14:36:38 2013 +0100
emotion: Check engine for NULL before dereferencing.
It might be that our engine list is empty and thus our engine might still
be set to NULL. Better check and return if this is the case instead of
dereferencing NULL.
---
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 79045fc..7cf66be 100644
--- a/src/modules/emotion/gstreamer/emotion_sink.c
+++ b/src/modules/emotion/gstreamer/emotion_sink.c
@@ -1027,6 +1027,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