[vlc-devel] [PATCH] OSS audio: Use SNDCTL_DSP_GETODELAY rather than GETOSPACE.

Rémi Denis-Courmont remi at remlab.net
Wed Jul 27 21:13:57 CEST 2011


Le mercredi 27 juillet 2011 21:53:21 Hans-Kristian Arntzen, vous avez écrit :
> Found an issue with the OSS driver, hopefully changes are accepted to it
> since it seemed to be really old.

Errm, does GETODELAY really return a byte count?
This would be rather counter-intuitive...

On the cosmetic side, this would avoid duplicating the ifdef:

+#ifdef SNDCTL_DSP_GETODELAY
+    if ( ioctl( p_sys->i_fd, SNDCTL_DSP_GETODELAY, &i_bytes ) < 0 )
+#endif
     {

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list