Commit 6971cd48 authored by Laurent Aimar's avatar Laurent Aimar

Fixed initial crop parameters in vout (close #3376).

parent 63b1f199
...@@ -191,16 +191,12 @@ static int Init(vout_thread_t *vout) ...@@ -191,16 +191,12 @@ static int Init(vout_thread_t *vout)
vout->fmt_out.i_x_offset = 0; vout->fmt_out.i_x_offset = 0;
vout->fmt_out.i_y_offset = 0; vout->fmt_out.i_y_offset = 0;
/* TODO */ if (vout->fmt_in.i_visible_width != source.i_visible_width ||
#if 0 vout->fmt_in.i_visible_height != source.i_visible_height ||
if (p_vout->fmt_render.i_visible_width != source.i_visible_width || vout->fmt_in.i_x_offset != source.i_x_offset ||
p_vout->fmt_render.i_visible_height != source.i_visible_height || vout->fmt_in.i_y_offset != source.i_y_offset )
p_vout->fmt_render.i_x_offset != source.i_x_offset || vout->i_changes |= VOUT_CROP_CHANGE;
p_vout->fmt_render.i_y_offset != source.i_y_offset )
{
p_vout->i_changes |= VOUT_CROP_CHANGE;
}
#endif
if (vout->b_on_top) if (vout->b_on_top)
vout_SetWindowState(vd, VOUT_WINDOW_STATE_ABOVE); vout_SetWindowState(vd, VOUT_WINDOW_STATE_ABOVE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment