[0.2.130] get audio only info from attr 16/244416/1 accepted/tizen/6.0/unified/20201030.114629 accepted/tizen/6.0/unified/hotfix/20201103.003829 accepted/tizen/unified/20200921.095133 submit/tizen/20200921.015926 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_6.0.m2_release
authorEunhye Choi <eunhae1.choi@samsung.com>
Fri, 18 Sep 2020 08:09:07 +0000 (17:09 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Fri, 18 Sep 2020 08:09:14 +0000 (17:09 +0900)
Change-Id: I7635d66227426b7bcbefa592df24c1176472b2ae

legacy/src/legacy_player.c
packaging/mmsvc-player.spec

index 58d0bec..357d6fb 100644 (file)
@@ -2616,15 +2616,17 @@ int legacy_player_is_audio_only(legacy_player_h player, bool *paudio_only)
 {
        legacy_player_t *handle = (legacy_player_t *)player;
        int ret = MM_ERROR_NONE;
-       bool audio_only = false;
+       int val = 0;
        PLAYER_INSTANCE_CHECK(player);
        PLAYER_NULL_ARG_CHECK(paudio_only);
 
-       ret = mm_player_get_audio_only(handle->mm_handle, &audio_only);
+       ret = mm_player_get_attribute(handle->mm_handle, NULL, MM_PLAYER_AUDIO_ONLY, &val, (char *)NULL);
        if (ret != MM_ERROR_NONE)
                return _lplayer_convert_error_code(ret, (char *)__FUNCTION__);
 
-       *paudio_only = audio_only;
+       *paudio_only = (bool)val;
+       LOGD("audio only %d", *paudio_only);
+
        return PLAYER_ERROR_NONE;
 }
 
index d061518..64ff2a8 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-player
 Summary:    A Media Player module for muse server
-Version:    0.2.129
+Version:    0.2.130
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0