[polypaudio-commits] r1047 - /trunk/src/utils/padsp.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Tue Jun 20 08:45:19 PDT 2006
Author: ossman
Date: Tue Jun 20 17:45:10 2006
New Revision: 1047
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1047&root=pulseaudio&view=rev
Log:
Warn when applications use SNDCTL_DSP_GET[IO]PTR even when they shouldn't.
Modified:
trunk/src/utils/padsp.c
Modified: trunk/src/utils/padsp.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/padsp.c?rev=1047&root=pulseaudio&r1=1046&r2=1047&view=diff
==============================================================================
--- trunk/src/utils/padsp.c (original)
+++ trunk/src/utils/padsp.c Tue Jun 20 17:45:10 2006
@@ -1992,10 +1992,19 @@
break;
}
-
+
+ case SNDCTL_DSP_GETIPTR:
+ debug(DEBUG_LEVEL_NORMAL, __FILE__": invalid ioctl SNDCTL_DSP_GETIPTR\n");
+ goto inval;
+
+ case SNDCTL_DSP_GETOPTR:
+ debug(DEBUG_LEVEL_NORMAL, __FILE__": invalid ioctl SNDCTL_DSP_GETOPTR\n");
+ goto inval;
+
default:
debug(DEBUG_LEVEL_NORMAL, __FILE__": unknown ioctl 0x%08lx\n", request);
+inval:
*_errno = EINVAL;
goto fail;
}
More information about the pulseaudio-commits
mailing list