Apply tizen C coding rule 02/64102/1 accepted/tizen/common/20160405.132642 accepted/tizen/ivi/20160405.083328 accepted/tizen/mobile/20160405.083205 accepted/tizen/tv/20160405.083226 accepted/tizen/wearable/20160405.083300 submit/tizen/20160405.045251
authorGilbok Lee <gilbok.lee@samsung.com>
Wed, 30 Mar 2016 05:50:27 +0000 (14:50 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Wed, 30 Mar 2016 05:50:27 +0000 (14:50 +0900)
Change-Id: Id19d90faa4d65c1a3af34514c8cf57124ed71015
Signed-off-by: Gilbok Lee <gilbok.lee@samsung.com>
src/port_gst/mediamuxer_port_gst.c
test/mediamuxer_test_gst.c

index 9a185f9..e79f923 100755 (executable)
@@ -607,7 +607,7 @@ mx_ret_e _gst_create_pipeline(mxgst_handle_t *gst_handle)
                                                G_CALLBACK(_audio_start_feed), current);
                                        g_signal_connect(current->appsrc, "enough-data",
                                                G_CALLBACK(_audio_stop_feed), current);
-                                       g_object_set (current->appsrc, "format", GST_FORMAT_TIME, NULL);
+                                       g_object_set(current->appsrc, "format", GST_FORMAT_TIME, NULL);
 #else
                                        g_object_set(current->appsrc, "block", TRUE, NULL);
                                        gst_app_src_set_stream_type((GstAppSrc *)current->appsrc,
@@ -657,7 +657,7 @@ mx_ret_e _gst_create_pipeline(mxgst_handle_t *gst_handle)
 
                                        /* Set subtitle_caps for corresponding src elements */
                                        g_object_set(current->appsrc, "caps", gst_caps_from_string(current->caps), NULL);
-                                       g_object_set (current->appsrc, "format", GST_FORMAT_TIME, NULL);
+                                       g_object_set(current->appsrc, "format", GST_FORMAT_TIME, NULL);
 
 #ifdef ASYCHRONOUS_WRITE
                                        /* ToDo: Use a function pointer, and create independent functions to each track */
@@ -1179,8 +1179,9 @@ int _gst_set_caps(MMHandleType pHandle, media_packet_h packet, int track_index)
                        g_object_set(current->appsrc, "caps", new_cap, NULL);
 #endif
                        gst_caps_unref(new_cap);
-               } else if (current != NULL)
-                       MX_I("appsrc caps already set to %s\n",current->caps);
+               } else if (current != NULL) {
+                       MX_I("appsrc caps already set to %s\n", current->caps);
+               }
                break;
 
        case MEDIA_FORMAT_CONTAINER:
index 4449efc..0bc6565 100644 (file)
@@ -275,7 +275,7 @@ static void __video_app_sink_callback(GstElement *sink, CustomData *data)
                                        return;
                                }
                        } else if (g_str_has_prefix(new_pad_type_vid, "video/mpeg")
-                               && strncmp(data_sink, "13", 2) == 0  ) {
+                               && strncmp(data_sink, "13", 2) == 0) {
                                g_print("For mpeg4, setting encoded media type as MEDIA_FORMAT_MPEG4_SP\n");
                                if (media_format_set_video_mime(vidfmt, MEDIA_FORMAT_MPEG4_SP)) {
                                        g_print("media_format_set_video_mime to MPEG4_SP failed\n");
@@ -436,7 +436,7 @@ void __text_app_sink_callback(GstElement *sink, CustomData *data)
                g_print("Called __text_app_sink_callback\n");
 
        gst_element_get_state(data->text_appsink, &state, NULL, GST_CLOCK_TIME_NONE);
-       g_print((state == GST_STATE_PLAYING)? "text_appsink GST_STATE_PLAYING\n" : "text appsink not palying\n");
+       g_print((state == GST_STATE_PLAYING) ? "text_appsink GST_STATE_PLAYING\n" : "text appsink not palying\n");
 
        g_signal_emit_by_name(sink, "pull-sample", &sample);
        buffer = gst_sample_get_buffer(sample);