Merge "Add checking invalid wl_surface_id" into tizen
authoreunhae choi <eunhae1.choi@samsung.com>
Tue, 5 Jul 2016 04:25:29 +0000 (21:25 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 5 Jul 2016 04:25:29 +0000 (21:25 -0700)
1  2 
src/player.c

diff --cc src/player.c
index ad0646e,73a9412..10da14d
mode 100644,100755..100644
@@@ -2071,8 -2073,11 +2068,11 @@@ int player_set_display(player_h player
                                        g_free(pc->wlclient);
                                        pc->wlclient = NULL;
                                }
+                               return_val_if_fail(wl_surface_id > 0, PLAYER_ERROR_INVALID_OPERATION);
+                               wl_win.wl_surface_id = wl_surface_id;
                        }
 -#ifdef EVAS_RENDERER_SUPPORT
 +#ifdef TIZEN_FEATURE_EVAS_RENDERER
                        else if (type == PLAYER_DISPLAY_TYPE_EVAS && !strcmp(object_type, "image")) {
                                /* evas object surface */
                                LOGI("evas surface type");