]> git.sesse.net Git - vlc/blobdiff - modules/access/oss.c
Fix video delay when using alsa or oss as slaves
[vlc] / modules / access / oss.c
index 140b0f9e314387a5a191cb197da1a62e14e4dbc7..7ef664d574f09623f171e61aff2543f88ce9f612 100644 (file)
@@ -37,7 +37,6 @@
 #include <vlc_access.h>
 #include <vlc_demux.h>
 #include <vlc_input.h>
-#include <vlc_vout.h>
 
 #include <ctype.h>
 #include <fcntl.h>
@@ -273,7 +272,7 @@ static int Demux( demux_t *p_demux )
         }
 
         /* Wait for data */
-        if( poll( &fd, 1, 500 ) ) /* Timeout after 0.5 seconds since I don't know if pf_demux can be blocking. */
+        if( poll( &fd, 1, 10 ) ) /* Timeout after 0.01 seconds. Bigger delays are an issue when used with/as an input-slave since all the inputs run in the same thread. */
         {
             if( fd.revents & (POLLIN|POLLPRI) )
             {