[MPlayer-users] PATCH: Updated vo_directfb for DirectFB 0.9.9

Aubin Paul aubin at punknews.org
Sat Mar 2 05:45:02 CET 2002


Hi,

I'm attaching a quick patch to enable mplayer to build against the
latest DirectFB (0.9.9) The gist of it, is that 0.9.9 has a generic
"event" handler to replace the "input" handler in 0.9.8.

Let me know if it's ok, and hopefully it could be added to CVS

Regards,

Aubin
-------------- next part --------------
Index: vo_directfb.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_directfb.c,v
retrieving revision 1.11
diff -r1.11 vo_directfb.c
111c111,112
< static IDirectFBInputBuffer *buffer = NULL;
---
> static IDirectFBEventBuffer *buffer = NULL; 
> 
572c573
<   DFBCHECK (dfb->GetInputDevice (dfb, DIDID_KEYBOARD, &keyboard));
---
>  DFBCHECK (dfb->GetInputDevice (dfb, DIDID_KEYBOARD, &keyboard));
577c578
<   DFBCHECK (keyboard->CreateInputBuffer (keyboard, &buffer));
---
>  DFBCHECK (keyboard->CreateEventBuffer (DICAPS_ALL, &buffer));
801c802
< if (buffer->GetEvent (buffer, &event) == DFB_OK) {
---
> if (buffer->GetEvent (buffer, DFB_EVENT(&event)) == DFB_OK) {


More information about the MPlayer-users mailing list