Ecore_Wl_Window * wl_window = NULL;
wl_win_msg_type wl_win;
char *wl_win_msg = (char *)&wl_win;
+ MMPlayerPipelineType mmPipelineType = MM_PLAYER_PIPELINE_CLIENT;
#else
unsigned int xhandle = 0;
#endif
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);
+ &wl_win.wl_window_width, &wl_win.wl_window_height);
wl_window = elm_win_wl_window_get(obj);
set_handle = (void *)ecore_wl_window_surface_get(wl_window);
/* get wl_display */
set_wl_display = (void *)ecore_wl_display_get();
- LOGI("xid %d, surface_id %d, surface %p(%d), win_id %d", elm_win_xwindow_get(obj),
+ LOGI("xid %d, surface_id %d, surface %p(%d), win_id %d",
+ elm_win_xwindow_get(obj),
ecore_wl_window_surface_id_get(wl_window),
- ecore_wl_window_surface_get(wl_window), *(int *)ecore_wl_window_surface_get(wl_window),
+ ecore_wl_window_surface_get(wl_window),
+ *(int *)ecore_wl_window_surface_get(wl_window),
ecore_wl_window_id_get(wl_window));
#else
/* x window overlay surface */
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);
+ &wl_win.wl_window_width, &wl_win.wl_window_height);
set_handle = display;
}
#endif
ret = mm_player_set_attribute(INT_HANDLE(pc), NULL,
"display_surface_type", type,
+ "pipeline_type", mmPipelineType,
"wl_display", set_wl_display,
sizeof(void*),
"display_overlay", set_handle,
LOGD("ENTER");
+ ret = mm_player_set_attribute(INT_HANDLE(pc), NULL,
+ "display_method" , mode, NULL);
+ if(ret != MM_ERROR_NONE)
+ return __player_convert_error_code(ret,(char*)__FUNCTION__);
+
player_msg_send1(api, pc, ret_buf, ret,
INT, mode);
g_free(ret_buf);
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(pmode);
int ret = PLAYER_ERROR_NONE;
- mm_player_api_e api = MM_PLAYER_API_GET_DISPLAY_MODE;
player_cli_s *pc = (player_cli_s *) player;
- char *ret_buf = NULL;
int mode = -1;
LOGD("ENTER");
- player_msg_send(api, pc, ret_buf, ret);
- if(ret == PLAYER_ERROR_NONE){
- player_msg_get(mode, ret_buf);
- *pmode = mode;
- }
- g_free(ret_buf);
+ ret = mm_player_get_attribute(INT_HANDLE(pc), NULL,
+ "display_method" , &mode, NULL);
+ if(ret != MM_ERROR_NONE)
+ return __player_convert_error_code(ret,(char*)__FUNCTION__);
+
+ *pmode = mode;
return ret;
}
LOGD("ENTER");
+ ret = mm_player_set_attribute(INT_HANDLE(pc), NULL,
+ "display_rotation", rotation, NULL);
+ if(ret != MM_ERROR_NONE)
+ {
+ return __player_convert_error_code(ret,(char*)__FUNCTION__);
+ }
+
player_msg_send1(api, pc, ret_buf, ret,
INT, rotation);
g_free(ret_buf);
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(protation);
int ret = PLAYER_ERROR_NONE;
- mm_player_api_e api = MM_PLAYER_API_GET_DISPLAY_ROTATION;
player_cli_s *pc = (player_cli_s *) player;
- char *ret_buf = NULL;
int rotation = -1;
LOGD("ENTER");
- player_msg_send(api, pc, ret_buf, ret);
- if(ret == PLAYER_ERROR_NONE){
- player_msg_get(rotation, ret_buf);
- *protation = rotation;
+ ret = mm_player_get_attribute(INT_HANDLE(pc), NULL,
+ "display_rotation", &rotation, NULL);
+ if(ret != MM_ERROR_NONE)
+ {
+ return __player_convert_error_code(ret,(char*)__FUNCTION__);
}
- g_free(ret_buf);
+
+ *protation = rotation;
+
return ret;
}