]> git.sesse.net Git - vlc/commitdiff
Patch to force alignment in OpenGL if it isn't correctlt positionned before, as panor...
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 24 Jan 2007 19:21:43 +0000 (19:21 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 24 Jan 2007 19:21:43 +0000 (19:21 +0000)
modules/video_output/opengl.c

index e1645092654fd69c65df151385271ab6f01a4dac..fa2c122e67fdb60dd78bd16bf4f919d92a679889 100644 (file)
@@ -671,7 +671,13 @@ static int Manage( vout_thread_t *p_vout )
         p_sys->p_vout->pf_unlock( p_sys->p_vout );
     }
 #endif
-
+// to align in real time in OPENGL
+       if (p_sys->p_vout->i_alignment != p_vout->i_alignment)
+       {
+               p_vout->i_changes = VOUT_CROP_CHANGE;           //to force change
+       p_sys->p_vout->i_alignment = p_vout->i_alignment;       
+       }
+       
     return i_ret;
 }