[MPlayer-cvslog] r34361 - trunk/libvo/vo_caca.c

reimar subversion at mplayerhq.hu
Thu Nov 24 01:00:40 CET 2011


Author: reimar
Date: Thu Nov 24 01:00:39 2011
New Revision: 34361

Log:
caca: process all pending events instead of exactly one per check_events.

Patch by Paul B. Mahol [onemda gmail com].

Modified:
   trunk/libvo/vo_caca.c

Modified: trunk/libvo/vo_caca.c
==============================================================================
--- trunk/libvo/vo_caca.c	Thu Nov 24 00:59:01 2011	(r34360)
+++ trunk/libvo/vo_caca.c	Thu Nov 24 01:00:39 2011	(r34361)
@@ -221,8 +221,7 @@ static void set_next_str(const char * co
 static void check_events(void)
 {
     caca_event_t cev;
-    if (!caca_get_event(display, CACA_EVENT_ANY, &cev, 1))
-        return;
+    while (caca_get_event(display, CACA_EVENT_ANY, &cev, 0)) {
 
     switch (cev.type) {
     case CACA_EVENT_RESIZE:
@@ -350,6 +349,7 @@ static void check_events(void)
         }
     }
     }
+    }
 }
 
 static void uninit(void)


More information about the MPlayer-cvslog mailing list