From: Eunhae Choi Date: Thu, 29 Sep 2016 07:45:15 +0000 (+0900) Subject: [v0.1.10] fix svace issue X-Git-Tag: accepted/tizen/3.0/ivi/20161028.123024~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F90262%2F1;p=platform%2Fcore%2Fapi%2Fmediastreamer.git [v0.1.10] fix svace issue Change-Id: Ia7d1753b60a542f77e4228ad81f215b81c960649 --- diff --git a/packaging/capi-media-streamer.spec b/packaging/capi-media-streamer.spec index 254db7e..dd22bbc 100644 --- a/packaging/capi-media-streamer.spec +++ b/packaging/capi-media-streamer.spec @@ -1,6 +1,6 @@ Name: capi-media-streamer Summary: A Media Streamer API -Version: 0.1.9 +Version: 0.1.10 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/media_streamer_gst.c b/src/media_streamer_gst.c index 0c607d0..0f25ac2 100644 --- a/src/media_streamer_gst.c +++ b/src/media_streamer_gst.c @@ -2103,6 +2103,9 @@ int __ms_find_type(media_streamer_s *ms_streamer, GstElement *src_element) GstPad *src_pad = gst_element_get_static_pad(src_element, "src"); typefind = gst_element_factory_make ("typefind", "typefinder"); + ms_retvm_if(typefind == NULL, MEDIA_STREAMER_ERROR_INVALID_OPERATION, + "Error creating element [typefind]"); + __ms_bin_add_element(ms_streamer->topology_bin, typefind, TRUE); gst_element_sync_state_with_parent(typefind);