From: Hyunil Date: Thu, 1 Aug 2019 07:10:51 +0000 (+0900) Subject: Change data type of surface id X-Git-Tag: accepted/tizen/unified/20190814.065133~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=985c95dbe55c7753e9b1d353d6ffd094ac9cb5ae;p=platform%2Fcore%2Fmultimedia%2Flibmm-player.git Change data type of surface id Change-Id: Ief8ed854e219009f5c8843488de510d93931889b Signed-off-by: Hyunil --- diff --git a/src/include/mm_player.h b/src/include/mm_player.h index ec1fcb8..2906bf0 100644 --- a/src/include/mm_player.h +++ b/src/include/mm_player.h @@ -1473,7 +1473,7 @@ int mm_player_do_video_capture(MMHandleType player); * @see * @since */ -int mm_player_change_videosink(MMHandleType player, MMDisplaySurfaceType display_surface_type, unsigned int wl_surface_id); +int mm_player_change_videosink(MMHandleType player, MMDisplaySurfaceType display_surface_type, int wl_surface_id); /** * This function set the application PID. diff --git a/src/include/mm_player_priv.h b/src/include/mm_player_priv.h index 7ef55bd..5151d0e 100644 --- a/src/include/mm_player_priv.h +++ b/src/include/mm_player_priv.h @@ -835,7 +835,7 @@ int _mmplayer_get_subtitle_silent(MMHandleType hplayer, int *silent); int _mmplayer_set_external_subtitle_path(MMHandleType hplayer, const char *filepath); int _mmplayer_get_buffer_position(MMHandleType hplayer, int *start_pos, int *end_pos); int _mmplayer_update_video_overlay_param(mmplayer_t *player, const char *param_name); -int _mmplayer_change_videosink(MMHandleType handle, MMDisplaySurfaceType surface_type, unsigned int wl_surface_id); +int _mmplayer_change_videosink(MMHandleType handle, MMDisplaySurfaceType surface_type, int wl_surface_id); int _mmplayer_audio_effect_custom_apply(mmplayer_t *player); int _mmplayer_set_audio_decoded_cb(MMHandleType hplayer, mmplayer_audio_extract_opt_e opt, mm_player_audio_decoded_callback callback, void *user_param); int _mmplayer_change_track_language(MMHandleType hplayer, mmplayer_track_type_e type, int index); diff --git a/src/mm_player.c b/src/mm_player.c index b6b6d15..980275e 100644 --- a/src/mm_player.c +++ b/src/mm_player.c @@ -306,7 +306,7 @@ int mm_player_get_state(MMHandleType player, mmplayer_state_e *state) } /* NOTE : It does not support some use cases, eg using colorspace converter */ -int mm_player_change_videosink(MMHandleType player, MMDisplaySurfaceType display_surface_type, unsigned int wl_surface_id) +int mm_player_change_videosink(MMHandleType player, MMDisplaySurfaceType display_surface_type, int wl_surface_id) { int result = MM_ERROR_NONE; diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c index e80309e..dc3f547 100644 --- a/src/mm_player_priv.c +++ b/src/mm_player_priv.c @@ -7678,7 +7678,7 @@ __mmplayer_release_signal_connection(mmplayer_t *player, mmplayer_signal_type_e } int -_mmplayer_change_videosink(MMHandleType handle, MMDisplaySurfaceType surface_type, unsigned int wl_surface_id) +_mmplayer_change_videosink(MMHandleType handle, MMDisplaySurfaceType surface_type, int wl_surface_id) { mmplayer_t *player = 0; int prev_display_surface_type = 0; @@ -7721,7 +7721,7 @@ _mmplayer_change_videosink(MMHandleType handle, MMDisplaySurfaceType surface_typ /* videobin is not created yet, so we just set attributes related to display surface */ LOGD("store display attribute for given surface type(%d)", surface_type); mm_player_set_attribute(handle, NULL, "display_surface_type", surface_type, - "display_overlay", (int)wl_surface_id, NULL); + "display_overlay", wl_surface_id, NULL); MMPLAYER_FLEAVE(); return MM_ERROR_NONE;