From eadb550ab3d28991f88af74e9ec9508584fb3f3a Mon Sep 17 00:00:00 2001 From: Eunhye Choi Date: Fri, 18 Sep 2020 17:12:51 +0900 Subject: [PATCH] [0.3.137] control the audio only at mused - remove audio only field - control the audio only operation and information at mused Change-Id: I902a587f44ee906800fb5a023b00add44c6eada6 --- include/player_private.h | 1 - packaging/capi-media-player.spec | 2 +- src/player.c | 15 --------------- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/include/player_private.h b/include/player_private.h index 64d0b5d..a8de5a3 100644 --- a/include/player_private.h +++ b/include/player_private.h @@ -193,7 +193,6 @@ typedef struct _player_cli_s { server_info_s server; gboolean have_evas_callback; gboolean push_media_stream; - gboolean is_audio_only; } player_cli_s; typedef struct { diff --git a/packaging/capi-media-player.spec b/packaging/capi-media-player.spec index 2d86e57..58dadd4 100644 --- a/packaging/capi-media-player.spec +++ b/packaging/capi-media-player.spec @@ -1,6 +1,6 @@ Name: capi-media-player Summary: A Media Player API -Version: 0.3.136 +Version: 0.3.137 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/player.c b/src/player.c index 1ff746c..c15bcb1 100644 --- a/src/player.c +++ b/src/player.c @@ -2310,7 +2310,6 @@ _PLAYER_UNPREPARE: _player_release_internal_memory(pc, false); pc->cb_info->video_frame_pool_size = 0; __player_remove_tsurf_list(pc); - pc->is_audio_only = FALSE; g_free(ret_buf); @@ -4864,7 +4863,6 @@ int player_set_audio_only(player_h player, bool audio_only) muse_player_api_e api = MUSE_PLAYER_API_SET_AUDIO_ONLY; char *ret_buf = NULL; player_state_e state = PLAYER_STATE_NONE; - mm_display_type_e display_type = MM_DISPLAY_TYPE_NONE; PLAYER_INSTANCE_CHECK(player); @@ -4881,12 +4879,6 @@ int player_set_audio_only(player_h player, bool audio_only) return PLAYER_ERROR_INVALID_STATE; } - if (mm_display_interface_get_type(DP_INTERFACE(pc), &display_type) == MM_ERROR_NONE && - display_type == MM_DISPLAY_TYPE_EVAS) { - pc->is_audio_only = (gboolean)audio_only; - return PLAYER_ERROR_NONE; - } - PLAYER_SEND_MSG(api, pc, ret_buf, ret, MUSE_TYPE_INT, "audio_only", (int)audio_only); g_free(ret_buf); @@ -4903,19 +4895,12 @@ int player_is_audio_only(player_h player, bool *paudio_only) player_cli_s *pc = (player_cli_s *)player; char *ret_buf = NULL; int audio_only = 0; - mm_display_type_e display_type = MM_DISPLAY_TYPE_NONE; PLAYER_INSTANCE_CHECK(player); PLAYER_NULL_ARG_CHECK(paudio_only); LOGD("ENTER"); - if (mm_display_interface_get_type(DP_INTERFACE(pc), &display_type) == MM_ERROR_NONE && - display_type == MM_DISPLAY_TYPE_EVAS) { - *paudio_only = (bool)pc->is_audio_only; - return PLAYER_ERROR_NONE; - } - PLAYER_SEND_MSG(api, pc, ret_buf, ret); if (ret == PLAYER_ERROR_NONE) { -- 2.7.4