All pastes #1905473 Raw Edit

Untitled

public diff v1 · immutable
#1905473 ·published 2010-07-21 18:51 UTC
rendered paste body
diff --git a/src/xine-engine/demux.c b/src/xine-engine/demux.c--- a/src/xine-engine/demux.c+++ b/src/xine-engine/demux.c@@ -343,17 +343,8 @@ static void *demux_loop (void *stream_ge        /* someone may want to interrupt us */       if( stream->demux_action_pending ) {-        struct timeval tv;         struct timespec ts;--        gettimeofday(&tv, NULL);-        ts.tv_sec  = tv.tv_sec;-        ts.tv_nsec = (tv.tv_usec + 100000) * 1000;-	if (ts.tv_nsec >= 1000000000) {-	  ts.tv_nsec -= 1000000000;-	  ts.tv_sec += 1;-	}-+	ts = _x_compute_interval(100);         pthread_cond_timedwait (&stream->demux_resume, &stream->demux_lock, &ts);       }     }