Mercurial > mplayer.hg
comparison libvo/vo_xvmc.c @ 13056:1c2f6de431bf
Removed superfluous XFlush calls before XSync.
Original patch by Piotr Neuman <sikkh@wp.pl>
extended by Joey to cover all X11 code
modified by me to only do the above stated change.
author | al |
---|---|
date | Fri, 20 Aug 2004 09:41:13 +0000 |
parents | 3cd9add91f97 |
children | e19b46309883 |
comparison
equal
deleted
inserted
replaced
13055:73f18d9f0ca9 | 13056:1c2f6de431bf |
---|---|
187 { | 187 { |
188 free(xvimage->data); | 188 free(xvimage->data); |
189 } | 189 } |
190 XFree(xvimage); | 190 XFree(xvimage); |
191 | 191 |
192 XFlush( mDisplay ); | |
193 XSync(mDisplay, False); | 192 XSync(mDisplay, False); |
194 return; | 193 return; |
195 } | 194 } |
196 //end of vo_xv shm/xvimage code | 195 //end of vo_xv shm/xvimage code |
197 | 196 |
760 | 759 |
761 // vo_x11_sizehint( hint.x, hint.y, hint.width, hint.height,0 ); | 760 // vo_x11_sizehint( hint.x, hint.y, hint.width, hint.height,0 ); |
762 | 761 |
763 if ( vo_gc != None ) XFreeGC( mDisplay,vo_gc ); | 762 if ( vo_gc != None ) XFreeGC( mDisplay,vo_gc ); |
764 vo_gc = XCreateGC(mDisplay, vo_window, GCForeground, &xgcv); | 763 vo_gc = XCreateGC(mDisplay, vo_window, GCForeground, &xgcv); |
765 XFlush(mDisplay); | |
766 XSync(mDisplay, False); | 764 XSync(mDisplay, False); |
767 #ifdef HAVE_XF86VM | 765 #ifdef HAVE_XF86VM |
768 if ( vm ) | 766 if ( vm ) |
769 { | 767 { |
770 /* Grab the mouse pointer in our window */ | 768 /* Grab the mouse pointer in our window */ |