fix the parameter of player_set_display 26/35226/2
authorMinkyu Kang <mk7.kang@samsung.com>
Wed, 11 Feb 2015 00:38:21 +0000 (09:38 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 11 Feb 2015 00:40:47 +0000 (09:40 +0900)
Change-Id: I94432c4727d4a31fbc65cefcba471a27628c3756
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
src/playermgr.cpp

index 08e8be6..2dbb52c 100644 (file)
@@ -148,7 +148,6 @@ struct playermgr *playermgr_init(Evas_Object *win,
 
 static int _play_video(struct playermgr *mgr, const char *path)
 {
-       Ecore_X_Window xwin;
        int r;
 
        if (player_set_uri(mgr->player, path) != PLAYER_ERROR_NONE) {
@@ -156,11 +155,10 @@ static int _play_video(struct playermgr *mgr, const char *path)
                return -1;
        }
 
-       xwin = elm_win_xwindow_get(mgr->win);
        r = player_set_display(mgr->player, PLAYER_DISPLAY_TYPE_OVERLAY,
-                       GET_DISPLAY(xwin));
+                       GET_DISPLAY(mgr->win));
        if (r != PLAYER_ERROR_NONE) {
-               _ERR("SETTING DISPLAY ERROR");
+               _ERR("SETTING DISPLAY ERROR: %d", r);
                return -1;
        }