[Mplayer-cvslog] CVS: main/libvo vo_directfb.c,1.11,1.12
Arpi of Ize
arpi at mplayer.dev.hu
Sun Mar 10 16:47:04 CET 2002
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv14907
Modified Files:
vo_directfb.c
Log Message:
DirectFB 0.9.9 support - patch by Aubin Paul <aubin at punknews.org>
Index: vo_directfb.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_directfb.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- vo_directfb.c 9 Feb 2002 01:21:48 -0000 1.11
+++ vo_directfb.c 10 Mar 2002 15:47:01 -0000 1.12
@@ -108,7 +108,12 @@
/*
* A buffer for input events.
*/
+
+#ifdef HAVE_DIRECTFB099
+static IDirectFBEventBuffer *buffer = NULL;
+#else
static IDirectFBInputBuffer *buffer = NULL;
+#endif
/******************************
* vo_directfb *
@@ -574,7 +579,11 @@
/*
* Create an input buffer for the keyboard.
*/
+#ifdef HAVE_DIRECTFB099
+ DFBCHECK (keyboard->CreateEventBuffer (DICAPS_ALL, &buffer));
+#else
DFBCHECK (keyboard->CreateInputBuffer (keyboard, &buffer));
+#endif
// yuv2rgb transform init
@@ -797,8 +806,11 @@
{
DFBInputEvent event;
-
+#ifdef HAVE_DIRECTFB099
+if (buffer->GetEvent (buffer, DFB_EVENT(&event)) == DFB_OK) {
+#else
if (buffer->GetEvent (buffer, &event) == DFB_OK) {
+#endif
if (event.type == DIET_KEYPRESS) {
switch (event.keycode) {
case DIKC_ESCAPE:
More information about the MPlayer-cvslog
mailing list