Support EVAS surface 43/46743/1 accepted/tizen/mobile/20150826.020100 accepted/tizen/tv/20150826.015638 accepted/tizen/wearable/20150826.020248 submit/tizen/20150825.141406
authorHyongtaek Lim <hyongtaek.lim@samsung.com>
Tue, 25 Aug 2015 14:03:32 +0000 (23:03 +0900)
committerHyongtaek Lim <hyongtaek.lim@samsung.com>
Tue, 25 Aug 2015 14:03:57 +0000 (23:03 +0900)
Signed-off-by: Hyongtaek Lim <hyongtaek.lim@samsung.com>
Change-Id: Ibe75c23ec306cf06f5fe42b7f06a324cd07dbe85

src/player_internal.c

index ed02791..94b27d0 100644 (file)
@@ -124,7 +124,7 @@ static MMDisplaySurfaceType __player_mused_convet_display_type(player_display_ty
                return MM_DISPLAY_SURFACE_REMOTE;
 #ifdef TIZEN_MOBILE
        case PLAYER_DISPLAY_TYPE_EVAS:
-               return MM_DISPLAY_SURFACE_EVAS;
+               return MM_DISPLAY_SURFACE_REMOTE;
 #endif
        case PLAYER_DISPLAY_TYPE_NONE:
                return MM_DISPLAY_SURFACE_NULL;
@@ -142,6 +142,7 @@ int player_set_display_wl_for_mused(player_h player, player_display_type_e type,
        player_s * handle = (player_s *) player;
        void *set_handle = NULL;
        MMDisplaySurfaceType mmType = __player_mused_convet_display_type(type);
+       MMDisplaySurfaceType mmClientType = MM_DISPLAY_SURFACE_NULL;
 
        int ret;
        if (!__player_state_validate(handle, PLAYER_STATE_IDLE))
@@ -181,6 +182,13 @@ int player_set_display_wl_for_mused(player_h player, player_display_type_e type,
                        LOGI("Wayland overlay surface type");
                        handle->display_handle = (void *)surface;
                        set_handle = &(handle->display_handle);
+                       mmClientType = MM_DISPLAY_SURFACE_X;
+               } else if (type == PLAYER_DISPLAY_TYPE_EVAS)
+               {
+                       LOGI("Evas surface type");
+                       handle->display_handle = (void *)surface;
+                       set_handle = &(handle->display_handle);
+                       mmClientType = MM_DISPLAY_SURFACE_EVAS;
                } else {
                        LOGE("invalid surface type");
                        return PLAYER_ERROR_INVALID_PARAMETER;
@@ -193,6 +201,7 @@ int player_set_display_wl_for_mused(player_h player, player_display_type_e type,
                LOGW("first time or same type");
                ret = mm_player_set_attribute(handle->mm_handle, NULL,
                        "display_surface_type", mmType,
+                       "display_surface_client_type", mmClientType,
                        "display_overlay", set_handle,
                        sizeof(void *), (char*)NULL);