[MPlayer-dev-eng] [PATCH] OSD flickering with dfbmga
mplayer at interlinx.bc.ca
mplayer at interlinx.bc.ca
Tue Nov 12 02:43:52 CET 2002
Here is a patch which corrects the OSD flickering issue that I
reported to mplayer-users. Because the OSD is written to a DirectFB
"layer" (which is blended with the layer the video is in by DirectFB)
it does not need to be blended with every single frame displayed and
updates to the layer only need be done when the OSD actually changes.
This patch only "Flip"s the sub-picture layer when there was actually
an OSD change.
Please apply ASAP.
Thanx,
b.
--
Brian J. Murrell
-------------- next part --------------
Index: libvo/vo_dfbmga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_dfbmga.c,v
retrieving revision 1.4
diff -u -r1.4 vo_dfbmga.c
--- libvo/vo_dfbmga.c 10 Nov 2002 13:58:46 -0000 1.4
+++ libvo/vo_dfbmga.c 11 Nov 2002 00:48:46 -0000
@@ -649,7 +649,7 @@
vo_draw_text( sub_width, sub_height, draw_alpha );
- if (use_spic)
+ if (use_spic && osd_changed)
subframe->Flip( subframe, NULL, 0 );
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021111/00e344a9/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list