diff options
Diffstat (limited to 'src/mm_player.c')
-rw-r--r-- | src/mm_player.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/mm_player.c b/src/mm_player.c index dcac88c..f648d67 100644 --- a/src/mm_player.c +++ b/src/mm_player.c @@ -1338,3 +1338,50 @@ int mm_player_manage_external_storage_state(MMHandleType player, int state) return result; } + +int mm_player_get_adaptive_variant_info(MMHandleType player, int *num, char **var_info) +{ + int result = MM_ERROR_NONE; + + MMPLAYER_RETURN_VAL_IF_FAIL(player, MM_ERROR_PLAYER_NOT_INITIALIZED); + MMPLAYER_RETURN_VAL_IF_FAIL(num && var_info, MM_ERROR_COMMON_INVALID_ARGUMENT); + + MMPLAYER_CMD_LOCK( player ); + + result = _mmplayer_get_adaptive_variant_info(player, num, var_info); + + MMPLAYER_CMD_UNLOCK( player ); + + return result; +} + +int mm_player_set_max_adaptive_variant_limit(MMHandleType player, int bandwidth, int width, int height) +{ + int result = MM_ERROR_NONE; + + MMPLAYER_RETURN_VAL_IF_FAIL(player, MM_ERROR_PLAYER_NOT_INITIALIZED); + + MMPLAYER_CMD_LOCK( player ); + + result = _mmplayer_set_max_adaptive_variant_limit(player, bandwidth, width, height); + + MMPLAYER_CMD_UNLOCK( player ); + + return result; +} + +int mm_player_get_max_adaptive_variant_limit(MMHandleType player, int *bandwidth, int *width, int *height) +{ + int result = MM_ERROR_NONE; + + MMPLAYER_RETURN_VAL_IF_FAIL(player, MM_ERROR_PLAYER_NOT_INITIALIZED); + MMPLAYER_RETURN_VAL_IF_FAIL(bandwidth && width && height, MM_ERROR_COMMON_INVALID_ARGUMENT); + + MMPLAYER_CMD_LOCK( player ); + + result = _mmplayer_get_max_adaptive_variant_limit(player, bandwidth, width, height); + + MMPLAYER_CMD_UNLOCK( player ); + + return result; +} |