[vlc-devel] commit: Video outputs should not change the vout's render format. ( Antoine Cellerier )

git version control git at videolan.org
Tue Jul 1 22:47:25 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Tue Jul  1 22:49:40 2008 +0200| [05881a9610a7f57971d94ae4ad567bf94a376402]

Video outputs should not change the vout's render format.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=05881a9610a7f57971d94ae4ad567bf94a376402
---

 modules/video_output/fb.c |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/modules/video_output/fb.c b/modules/video_output/fb.c
index e3a8fb9..95ea2fe 100644
--- a/modules/video_output/fb.c
+++ b/modules/video_output/fb.c
@@ -525,13 +525,12 @@ static int Init( vout_thread_t *p_vout )
     }
     p_vout->fmt_out.i_chroma = p_vout->output.i_chroma;
 
-    if( !p_sys->b_auto )
-    {
-        p_vout->render.i_width = p_sys->i_width;
-        p_vout->render.i_height = p_sys->i_height;
-    }
-    p_vout->output.i_width  = p_vout->fmt_out.i_width = p_sys->i_width;
-    p_vout->output.i_height = p_vout->fmt_out.i_height = p_sys->i_height;
+    p_vout->output.i_width =
+    p_vout->fmt_out.i_width =
+    p_vout->fmt_out.i_visible_width = p_sys->i_width;
+    p_vout->output.i_height =
+    p_vout->fmt_out.i_height =
+    p_vout->fmt_out.i_visible_height = p_sys->i_height;
 
     /* Assume we have square pixels */
     if( p_sys->i_aspect < 0 )




More information about the vlc-devel mailing list