[MPlayer-cvslog] r31255 - trunk/stream/stream.c

reimar subversion at mplayerhq.hu
Fri May 28 20:49:02 CEST 2010


Author: reimar
Date: Fri May 28 20:49:02 2010
New Revision: 31255

Log:
stream_check_interrupt should sleep even if no callback is set.

Modified:
   trunk/stream/stream.c

Modified: trunk/stream/stream.c
==============================================================================
--- trunk/stream/stream.c	Fri May 28 20:47:03 2010	(r31254)
+++ trunk/stream/stream.c	Fri May 28 20:49:02 2010	(r31255)
@@ -486,7 +486,10 @@ void stream_set_interrupt_callback(int (
 }
 
 int stream_check_interrupt(int time) {
-    if(!stream_check_interrupt_cb) return 0;
+    if(!stream_check_interrupt_cb) {
+        usec_sleep(time * 1000);
+        return 0;
+    }
     return stream_check_interrupt_cb(time);
 }
 


More information about the MPlayer-cvslog mailing list