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 e164509..fa2c122 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;
 }