Change data type of surface id 89/211289/1
authorHyunil <hyunil46.park@samsung.com>
Thu, 1 Aug 2019 07:10:51 +0000 (16:10 +0900)
committerHyunil <hyunil46.park@samsung.com>
Thu, 1 Aug 2019 07:10:51 +0000 (16:10 +0900)
Change-Id: Ief8ed854e219009f5c8843488de510d93931889b
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
src/include/mm_player.h
src/include/mm_player_priv.h
src/mm_player.c
src/mm_player_priv.c

index ec1fcb8..2906bf0 100644 (file)
@@ -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.
index 7ef55bd..5151d0e 100644 (file)
@@ -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);
index b6b6d15..980275e 100644 (file)
@@ -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;
 
index e80309e..dc3f547 100644 (file)
@@ -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;