From: Hyongtaek Lim Date: Mon, 23 Nov 2015 02:52:44 +0000 (+0900) Subject: fix build error of 64bit with x11 X-Git-Tag: submit/tizen/20151123.054109^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9de046d1f8924d26859e4a7b1a442461177036a5;p=platform%2Fcore%2Fapi%2Fplayer.git fix build error of 64bit with x11 Signed-off-by: Hyongtaek Lim Change-Id: Id07afd537efa9a1529c97272812f815935f31700 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index aed3bce..7a2bfce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ FOREACH(flag ${${fw_name}_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") ENDFOREACH(flag) -SET(CMAKE_C_FLAGS "-I./${INC_DIR} ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -DGST_EXT_TIME_ANALYSIS") +SET(CMAKE_C_FLAGS "-I./${INC_DIR} ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -Wno-deprecated -Wno-deprecated-declarations -DGST_EXT_TIME_ANALYSIS") SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") IF("${ARCH}" STREQUAL "arm") diff --git a/src/player.c b/src/player.c index 8ebc11b..7111c85 100644 --- a/src/player.c +++ b/src/player.c @@ -1976,7 +1976,7 @@ int player_set_display(player_h player, player_display_type_e type, player_displ #else // HAVE_X11 /* x window overlay surface */ LOGI("X overlay surface type"); - handle->display_handle = (void *)elm_win_xwindow_get(obj); + handle->display_handle = (void *)(uintptr_t)elm_win_xwindow_get(obj); set_handle = &(handle->display_handle); #endif } diff --git a/src/player_priv.c b/src/player_priv.c index 84a8f55..58f3038 100644 --- a/src/player_priv.c +++ b/src/player_priv.c @@ -248,7 +248,7 @@ int player_set_display_for_mused(player_h player, player_display_type_e type, un { /* x window overlay surface */ LOGI("overlay surface type"); - handle->display_handle = (void *)xhandle; + handle->display_handle = (void *)(uintptr_t)xhandle; set_handle = &(handle->display_handle); } else