Add an internal function of audio policy info for mused 47/45047/1 accepted/tizen/mobile/20150731.102627 accepted/tizen/tv/20150731.102750 accepted/tizen/wearable/20150731.102917 submit/tizen/20150731.053257
authorHyongtaek Lim <hyongtaek.lim@samsung.com>
Fri, 31 Jul 2015 01:42:35 +0000 (10:42 +0900)
committerHyongtaek Lim <hyongtaek.lim@samsung.com>
Fri, 31 Jul 2015 01:43:36 +0000 (10:43 +0900)
Signed-off-by: Hyongtaek Lim <hyongtaek.lim@samsung.com>
Change-Id: I65968f27cea482d3e991f6df20ec9eb50fd8da89

src/player_internal.c

index 604739e10c67bd702ad27616dd97a75c123c5c9d..ed027913150decd6d8750805fd2558393f34b5d8 100644 (file)
@@ -379,6 +379,26 @@ int player_set_display_for_mused(player_h player, player_display_type_e type, un
 }
 #endif
 
+int player_set_audio_policy_info_for_mused(player_h player,
+       char *stream_type, int stream_index)
+{
+       PLAYER_INSTANCE_CHECK(player);
+       player_s * handle = (player_s *) player;
+       int ret;
+
+       PLAYER_STATE_CHECK(handle, PLAYER_STATE_IDLE);
+
+       ret = mm_player_set_attribute(handle->mm_handle, NULL,
+                       "sound_stream_type", stream_type, strlen(stream_type),
+                       "sound_stream_index", stream_index,
+                       NULL);
+
+       if(ret != MM_ERROR_NONE)
+               return __player_convert_error_code(ret,(char*)__FUNCTION__);
+       else
+               return PLAYER_ERROR_NONE;
+}
+
 int player_get_raw_video_caps(player_h player, char **caps)
 {
        int ret;