[0.6.258] Use video overlay interface to set exported shell handle 60/261560/2
authorHyunil <hyunil46.park@samsung.com>
Wed, 21 Jul 2021 06:53:07 +0000 (15:53 +0900)
committerHyunil <hyunil46.park@samsung.com>
Fri, 23 Jul 2021 01:25:33 +0000 (10:25 +0900)
- Use gst_video_overlay_set_wl_window_exported_shell_handle()
- Remove g_object_set() but it is available.

Change-Id: I340502081f130a6b3ab64522c16766eeea1ea7e7
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
packaging/libmm-player.spec
src/mm_player_priv.c

index 7e27f27..25de64a 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.257
+Version:    0.6.258
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 9700190..d75a7d8 100644 (file)
@@ -2086,7 +2086,10 @@ static void __mmplayer_video_param_set_display_overlay_sync_ui(mmplayer_t *playe
        /* common case if using overlay surface */
        mm_attrs_get_string_by_name(attrs, "exported_shell_handle", &handle);
        MMPLAYER_RETURN_IF_FAIL(handle);
-       g_object_set(player->pipeline->videobin[MMPLAYER_V_SINK].gst, "exported-shell-handle", handle, NULL);
+
+       gst_video_overlay_set_wl_window_exported_shell_handle(
+                       GST_VIDEO_OVERLAY(player->pipeline->videobin[MMPLAYER_V_SINK].gst),
+                       handle);
        LOGD("set video param: exported_shell_handle (%s)", handle);
 }