Commit 022716f4 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Tell p_vout->render the aspect ratio and dimensions (width, height) of the output.

parent 4dfbf863
......@@ -362,8 +362,8 @@ static int Init( vout_thread_t *p_vout )
}
p_vout->fmt_out.i_chroma = p_vout->output.i_chroma;
p_vout->output.i_width = p_sys->i_width;
p_vout->output.i_height = p_sys->i_height;
p_vout->output.i_width = p_vout->render.i_width = p_sys->i_width;
p_vout->output.i_height = p_vout->render.i_height = p_sys->i_height;
/* Assume we have square pixels */
if( p_sys->i_aspect < 0 )
......@@ -374,7 +374,7 @@ static int Init( vout_thread_t *p_vout )
else p_vout->output.i_aspect = p_sys->i_aspect;
p_vout->fmt_out.i_sar_num = p_vout->fmt_out.i_sar_den = 1;
p_vout->fmt_out.i_aspect = p_vout->output.i_aspect;
p_vout->fmt_out.i_aspect = p_vout->render.i_aspect = p_vout->output.i_aspect;
/* Clear the screen */
memset( p_sys->p_video, 0, p_sys->i_page_size );
......
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