[MPlayer-dev-eng] [PATCH] Fix dfbmga with DirectFB < 0.9.16
Ville Syrjälä
syrjala at sci.fi
Thu May 1 21:40:51 CEST 2003
This patch should fix dfbmga with older DirectFB releases.
--
Ville Syrjälä
syrjala at sci.fi
http://www.sci.fi/~syrjala/
-------------- next part --------------
--- main/libvo/vo_dfbmga.c 2003-04-25 02:11:06.000000000 +0300
+++ main/libvo/vo_dfbmga.c 2003-05-01 22:28:11.000000000 +0300
@@ -917,16 +917,20 @@
IDirectFBSurface *blitsrc = frame;
if (use_bes) {
+#if DIRECTFBVERSION > 915
if (vo_vsync && !flipping && !use_crtc2)
bes->WaitForSync( bes );
+#endif
besframe->Blit( besframe, blitsrc, NULL, 0, 0 );
blitsrc = besframe;
}
if (use_crtc2) {
+#if DIRECTFBVERSION > 915
if (vo_vsync && !flipping)
crtc2->WaitForSync( crtc2 );
+#endif
if (stretch)
c2frame->StretchBlit( c2frame, blitsrc, NULL, &drect );
@@ -998,7 +1002,7 @@
}
blit_done = 0;
- current_buf = 0;//vo_directrendering ? 0 : (current_buf + 1) % num_bufs;
+ current_buf = vo_directrendering ? 0 : (current_buf + 1) % num_bufs;
}
static void
More information about the MPlayer-dev-eng
mailing list