add evas object callback for wayland window 68/57068/3 accepted/tizen/mobile/20160118.084837 accepted/tizen/tv/20160118.084914 accepted/tizen/wearable/20160118.084947 submit/tizen/20160115.080623 submit/tizen/20160118.063715
authorNAMJEONGYOON <just.nam@samsung.com>
Fri, 15 Jan 2016 02:30:51 +0000 (11:30 +0900)
committerNAMJEONGYOON <just.nam@samsung.com>
Fri, 15 Jan 2016 02:35:04 +0000 (11:35 +0900)
Change-Id: Ic45e6ff9619a739bbb947540a88b456792e60a07

client/src/player2.c

index 8b49f29..6532066 100644 (file)
@@ -1183,6 +1183,9 @@ int player_destroy(player_h player)
 
        player_msg_send(api, pc, ret_buf, ret);
 
+       if(mm_player_mused_unset_evas_object_cb(INT_HANDLE(pc)) != MM_ERROR_NONE)
+               LOGW("fail to unset evas object callback");
+
        if (CALLBACK_INFO(pc)) {
                if (mm_player_mused_destroy(INT_HANDLE(pc)) != MM_ERROR_NONE)
                        ret = PLAYER_ERROR_INVALID_OPERATION;
@@ -1771,6 +1774,8 @@ int player_set_display(player_h player, player_display_type_e type, player_displ
                                wl_win.type = type;
 
                                evas_object_geometry_get(obj, &wl_win.wl_window_x, &wl_win.wl_window_y, &wl_win.wl_window_width, &wl_win.wl_window_height);
+                               if(mm_player_mused_set_evas_object_cb(INT_HANDLE(pc), obj) != MM_ERROR_NONE)
+                                       LOGW("fail to set evas object callback");
 
                                wl_window = elm_win_wl_window_get(obj);
                                set_handle = (void *)ecore_wl_window_surface_get(wl_window);