From 013195f6ccf57decfad8b772045284fee70eb598 Mon Sep 17 00:00:00 2001 From: Hyongtaek Lim Date: Fri, 25 Sep 2015 12:41:07 +0900 Subject: [PATCH] Add get information of content is streaming Signed-off-by: Hyongtaek Lim Change-Id: I849e123d0b809d8e7f94353f8f2b29aa31139b11 --- include/player_private.h | 1 + src/player_priv.c | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/include/player_private.h b/include/player_private.h index f4c247e..81e0069 100644 --- a/include/player_private.h +++ b/include/player_private.h @@ -134,6 +134,7 @@ typedef struct _player_s{ int __player_convert_error_code(int code, char* func_name); bool __player_state_validate(player_s * handle, player_state_e threshold); int player_sound_register(player_h player, int pid); +int player_is_streaming(player_h player, bool *is_streaming); /** * @brief Called when the video sink bin is crated. diff --git a/src/player_priv.c b/src/player_priv.c index 089e8d5..84a8f55 100644 --- a/src/player_priv.c +++ b/src/player_priv.c @@ -393,3 +393,14 @@ int player_sound_register(player_h player, int pid) return PLAYER_ERROR_NONE; } + +int player_is_streaming(player_h player, bool *is_streaming) +{ + PLAYER_INSTANCE_CHECK(player); + player_s * handle = (player_s *) player; + + int ret = mm_player_is_streaming(handle->mm_handle, is_streaming); + if(ret != MM_ERROR_NONE) + return __player_convert_error_code(ret,(char*)__FUNCTION__); + return PLAYER_ERROR_NONE; +} -- 2.7.4