summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-06-25 14:36:38 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2013-06-25 14:42:09 +0100
commit8deb75463bdb7f8aaa45bebdd3d1570655b66043 (patch)
treeeb0876a1eb6f6321335d8e754480bdcc74534354
parentabf8a3b7bfaff7b68369ec7260dfbdb9701905ac (diff)
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.
-rw-r--r--src/modules/emotion/gstreamer/emotion_sink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/emotion/gstreamer/emotion_sink.c b/src/modules/emotion/gstreamer/emotion_sink.c
index 79045fcaf9..7cf66be243 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
1027 } 1027 }
1028 } 1028 }
1029 1029
1030 if (!engine) return;
1031
1030 if (strstr(engine, "software") != NULL) 1032 if (strstr(engine, "software") != NULL)
1031 { 1033 {
1032 caps = gst_caps_new_simple("video/x-raw-rgb", 1034 caps = gst_caps_new_simple("video/x-raw-rgb",