From: Sangchul Lee Date: Fri, 17 Apr 2020 03:59:04 +0000 (+0900) Subject: Comply with the Tizen coding rule X-Git-Tag: submit/tizen/20200511.015752~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F231049%2F1;p=platform%2Fcore%2Fapi%2Fmediastreamer.git Comply with the Tizen coding rule [Version] 0.1.27 [Issue Type] Coding convention Change-Id: If78ffb56e0351fe7216ec2a4420d340243cd60cd Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-streamer.spec b/packaging/capi-media-streamer.spec index f736f94..a4c6aaa 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.26 +Version: 0.1.27 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/media_streamer_gst.c b/src/media_streamer_gst.c index 5f7bef7..c491b20 100644 --- a/src/media_streamer_gst.c +++ b/src/media_streamer_gst.c @@ -484,7 +484,7 @@ int __ms_factory_rank_compare(GstPluginFeature *first_feature, GstPluginFeature first_rank = gst_plugin_feature_get_rank(first_feature); second_rank = gst_plugin_feature_get_rank(second_feature); - ms_debug ("second[%s]_rank(%d) - first[%s]_rank(%d) = (%d)", + ms_debug("second[%s]_rank(%d) - first[%s]_rank(%d) = (%d)", GST_OBJECT_NAME(GST_ELEMENT_FACTORY(second_feature)), second_rank, GST_OBJECT_NAME(GST_ELEMENT_FACTORY(first_feature)), first_rank, second_rank - first_rank); diff --git a/src/media_streamer_http_server.c b/src/media_streamer_http_server.c index fe171aa..79272a8 100644 --- a/src/media_streamer_http_server.c +++ b/src/media_streamer_http_server.c @@ -87,11 +87,10 @@ int __ms_http_server_destroy(media_streamer_http_server_h server) __ms_http_server_stop(server); /* Destroy URIs hash table */ - if (hserver->uri_table) { + if (hserver->uri_table) g_hash_table_destroy(hserver->uri_table); - } else { + else ms_error("uri_table is NULL"); - } if (hserver->server) g_object_unref(hserver->server); @@ -119,7 +118,7 @@ int __ms_http_server_start(media_streamer_http_server_h server, int port) soup_server_listen_all(hserver->server, port, 0, &error); if (error) { ms_error("Failed to start: '%s'", error->message); - g_error_free (error); + g_error_free(error); return MEDIA_STREAMER_ERROR_INVALID_OPERATION; } diff --git a/src/media_streamer_node.c b/src/media_streamer_node.c index 933c0cf..8ffc53e 100644 --- a/src/media_streamer_node.c +++ b/src/media_streamer_node.c @@ -1443,7 +1443,7 @@ int __ms_node_get_param_value(media_streamer_node_s *node, param_s *param, char !g_strcmp0(param->param_name, MEDIA_STREAMER_PARAM_IP_ADDRESS) || !g_strcmp0(param->param_name, MEDIA_STREAMER_PARAM_AUDIO_DEVICE) || !g_strcmp0(param->param_name, MEDIA_STREAMER_PARAM_HOST) || - !g_strcmp0(param->param_name, MEDIA_STREAMER_PARAM_SEGMENT_LOCATION)|| + !g_strcmp0(param->param_name, MEDIA_STREAMER_PARAM_SEGMENT_LOCATION) || !g_strcmp0(param->param_name, MEDIA_STREAMER_PARAM_PLAYLIST_LOCATION)) { string_val = g_value_dup_string(&value); } else if (!g_strcmp0(param->param_name, MEDIA_STREAMER_PARAM_STREAM_TYPE) || diff --git a/src/media_streamer_node_resources.c b/src/media_streamer_node_resources.c index f74b598..d92e31c 100644 --- a/src/media_streamer_node_resources.c +++ b/src/media_streamer_node_resources.c @@ -79,7 +79,7 @@ static gboolean __ms_node_resources_is_needed_by_platform(media_streamer_node_s return ret; } -static gboolean __ms_node_get_resources_needed(media_streamer_node_s *node, mm_resource_manager_res_type_e *resource) +static gboolean __ms_node_get_resources_needed(media_streamer_node_s *node, mm_resource_manager_res_type_e *resource) { media_streamer_node_type_e type; int subtype; diff --git a/test/media_streamer_test.c b/test/media_streamer_test.c index 6c7a92e..14e68b3 100644 --- a/test/media_streamer_test.c +++ b/test/media_streamer_test.c @@ -1659,14 +1659,12 @@ void _interpret_static_link_playing_scenario_menu(char *cmd) if (len == 1) { if (!strncmp(cmd, "1", len)) { g_scenario_mode = SCENARIO_MODE_APPSRC_APPSINK; - } - else if (!strncmp(cmd, "2", len)) { + } else if (!strncmp(cmd, "2", len)) { g_scenario_mode = SCENARIO_MODE_FILE_PLAY_AAC_AUDIO; g_sub_menu_state = SUBMENU_STATE_GETTING_FILE_URI; g_printf("g_sub_menu_state (%d)\n", g_sub_menu_state); return; - } - else if (!strncmp(cmd, "3", len)) { + } else if (!strncmp(cmd, "3", len)) { g_scenario_mode = SCENARIO_MODE_FILE_PLAY_MP3_AUDIO; g_sub_menu_state = SUBMENU_STATE_GETTING_FILE_URI; g_printf("g_sub_menu_state (%d)\n", g_sub_menu_state);