[vlc-commits] commit: Fixed initial crop parameters in vout (close #3376). ( Laurent Aimar )

git at videolan.org git at videolan.org
Fri Mar 26 21:02:25 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Mar 26 21:00:52 2010 +0100| [6971cd483612b792063283faa6da1be6bc35b6fe] | committer: Laurent Aimar 

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

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

 modules/video_output/wrapper.c |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/modules/video_output/wrapper.c b/modules/video_output/wrapper.c
index d68dd2f..558db23 100644
--- a/modules/video_output/wrapper.c
+++ b/modules/video_output/wrapper.c
@@ -191,16 +191,12 @@ static int Init(vout_thread_t *vout)
     vout->fmt_out.i_x_offset       = 0;
     vout->fmt_out.i_y_offset       = 0;
 
-    /* TODO */
-#if 0
-    if (p_vout->fmt_render.i_visible_width  != source.i_visible_width ||
-        p_vout->fmt_render.i_visible_height != source.i_visible_height ||
-        p_vout->fmt_render.i_x_offset != source.i_x_offset ||
-        p_vout->fmt_render.i_y_offset != source.i_y_offset )
-    {
-        p_vout->i_changes |= VOUT_CROP_CHANGE;
-    }
-#endif
+    if (vout->fmt_in.i_visible_width  != source.i_visible_width ||
+        vout->fmt_in.i_visible_height != source.i_visible_height ||
+        vout->fmt_in.i_x_offset       != source.i_x_offset ||
+        vout->fmt_in.i_y_offset       != source.i_y_offset )
+        vout->i_changes |= VOUT_CROP_CHANGE;
+
     if (vout->b_on_top)
         vout_SetWindowState(vd, VOUT_WINDOW_STATE_ABOVE);
 



More information about the vlc-commits mailing list