fix build warning 50/62550/2
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 16 Mar 2016 12:39:51 +0000 (21:39 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Fri, 18 Mar 2016 07:56:55 +0000 (16:56 +0900)
Change-Id: I4b569ee5e9649380d5d5d419c13cfbf204c8a355
Signed-off-by: Eunhae Choi <eunhae1.choi@samsung.com>
CMakeLists.txt [changed mode: 0755->0644]
packaging/capi-media-streamer.spec
src/media_streamer_gst.c

old mode 100755 (executable)
new mode 100644 (file)
index 434752a..cf69184
@@ -19,7 +19,7 @@ FOREACH(flag ${${fw_name}_CFLAGS})
     SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
 ENDFOREACH(flag)
 
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
 
 IF("${ARCH}" STREQUAL "arm")
index 3d151f9..f94faeb 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-streamer
 Summary:    A Media Streamer library in Tizen Native API
-Version:    0.1.3
+Version:    0.1.4
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index cf92806..640441f 100755 (executable)
@@ -679,6 +679,7 @@ static gint __decodebin_autoplug_select_cb(GstElement * bin, GstPad * pad, GstCa
 
        gchar *factory_name = NULL;
        const gchar *klass = NULL;
+       GstAutoplugSelectResult result = GST_AUTOPLUG_SELECT_TRY;
 
        factory_name = GST_OBJECT_NAME(factory);
        klass = gst_element_factory_get_metadata(factory, GST_ELEMENT_METADATA_KLASS);
@@ -695,10 +696,10 @@ static gint __decodebin_autoplug_select_cb(GstElement * bin, GstPad * pad, GstCa
                                return GST_AUTOPLUG_SELECT_SKIP;
                        }
                }
-
        }
 
-       return GST_AUTOPLUG_SELECT_TRY;
+DONE:
+       return result;
 }
 
 static void __decodebin_newpad_streamer(GstElement * decodebin, GstPad * new_pad, const gchar * new_pad_type)