[0.3.137] control the audio only at mused 17/244417/1 accepted/tizen/6.0/unified/20201030.121248 accepted/tizen/6.0/unified/hotfix/20201103.003411 accepted/tizen/6.0/unified/hotfix/20201103.050127 accepted/tizen/unified/20200921.095135 submit/tizen/20200921.015926 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 tizen_6.0.m2_release
authorEunhye Choi <eunhae1.choi@samsung.com>
Fri, 18 Sep 2020 08:12:51 +0000 (17:12 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Fri, 18 Sep 2020 08:12:55 +0000 (17:12 +0900)
- remove audio only field
- control the audio only operation and information at mused

Change-Id: I902a587f44ee906800fb5a023b00add44c6eada6

include/player_private.h
packaging/capi-media-player.spec
src/player.c

index 64d0b5d..a8de5a3 100644 (file)
@@ -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 {
index 2d86e57..58dadd4 100644 (file)
@@ -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
index 1ff746c..c15bcb1 100644 (file)
@@ -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) {