LOGD("set video param : method %d", display_method);
}
-int
+void
__mmplayer_video_param_set_render_rectangle(mm_player_t* player)
{
MMHandleType attrs = 0;
/* check video sinkbin is created */
if (MM_ERROR_NONE != __mmplayer_video_param_check_video_sink_bin(player))
- return MM_ERROR_PLAYER_INTERNAL;
+ return;
attrs = MMPLAYER_GET_ATTRS(player);
- MMPLAYER_RETURN_VAL_IF_FAIL(attrs, MM_ERROR_PLAYER_INTERNAL);
+ MMPLAYER_RETURN_IF_FAIL(attrs);
mm_attrs_get_data_by_name(attrs, "display_overlay", &handle);
wl_window_x, wl_window_y, wl_window_width, wl_window_height);
LOGD("set video param : render rectangle : x(%d) y(%d) width(%d) height(%d)",
wl_window_x, wl_window_y, wl_window_width, wl_window_height);
- } else {
- return MM_ERROR_PLAYER_INTERNAL;
+
}
- return MM_ERROR_NONE;
}
void
__mmplayer_video_param_set_display_overlay(mm_player_t* player)
__mmplayer_update_wayland_videosink_video_param(mm_player_t* player, char *param_name)
{
bool update_all_param = FALSE;
- MMHandleType attrs = 0;
- int display_method = 0;
MMPLAYER_FENTER();
/* check video sinkbin is created */
__mmplayer_video_param_set_display_overlay(player);
if (update_all_param || !g_strcmp0(param_name, "display_method"))
__mmplayer_video_param_set_display_method(player);
- /* check roi mode is set */
- attrs = MMPLAYER_GET_ATTRS(player);
- MMPLAYER_RETURN_VAL_IF_FAIL(attrs, MM_ERROR_PLAYER_INTERNAL);
- mm_attrs_get_int_by_name(attrs, "display_method", &display_method);
- if ((display_method == PLAYER_DISPLAY_MODE_DST_ROI) && (update_all_param || !g_strcmp0(param_name, "wl_window_render_x"))) {
- if (MM_ERROR_NONE != __mmplayer_video_param_set_render_rectangle(player))
- return MM_ERROR_PLAYER_INTERNAL;
- }
+ if (update_all_param || !g_strcmp0(param_name, "wl_window_render_x"))
+ __mmplayer_video_param_set_render_rectangle(player);
if (update_all_param || !g_strcmp0(param_name, "display_visible"))
__mmplayer_video_param_set_display_visible(player);
if (update_all_param || !g_strcmp0(param_name, "display_rotation"))