mmdevapi: Fix wrong blacklist test.

This commit is contained in:
Maarten Lankhorst 2010-04-16 10:20:36 +02:00 committed by Alexandre Julliard
parent 1bf812106a
commit ab13ffa454
1 changed files with 2 additions and 2 deletions

View File

@ -736,12 +736,12 @@ static int blacklist_pulse;
static int blacklist(const char *dev) {
#ifdef __linux__
if (strncmp(dev, "OSS ", 4))
if (!strncmp(dev, "OSS ", 4))
return 1;
#endif
if (blacklist_pulse && !strncmp(dev, "PulseAudio ", 11))
return 1;
if (strstr(dev, "ALSA") && strstr(dev, "hw:"))
if (!strncmp(dev, "ALSA ", 5) && strstr(dev, "hw:"))
return 1;
return 0;
}