--- /tmp/flashsupport.c.orig 2010-03-31 11:27:45 +0200 +++ /tmp/flashsupport.c 2010-03-31 23:52:22 +0200 @@ -775,7 +775,7 @@ struct SoundOutput_Instance *instance = (struct SoundOutput_Instance *)ptr; if ( instance->oss_fd ) { int value = 0; - if ( ( value = ioctl(instance->oss_fd,SNDCTL_DSP_GETODELAY,&value) ) == 0 ) { + if ( ioctl(instance->oss_fd,SNDCTL_DSP_GETODELAY,&value) >= 0 ) { return value / 4; } return 0;