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
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);
__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);
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;
}
!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) ||
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;
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);