aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_musiconhold.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-12 16:52:45 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-12 16:52:45 +0000
commit4c12637051c0a8cb03b04f71415736cd090026dc (patch)
treed58b7f0433e06a05ff37bf0643b0f16043c2e44f /res/res_musiconhold.c
parente91f2d5af17b9b9c9379034460b7e6a87032f11d (diff)
Fix logic flaw in previous commit.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@181660 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_musiconhold.c')
-rw-r--r--res/res_musiconhold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 5fe2e4157..b034f4ddf 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -557,7 +557,7 @@ static void *monmp3thread(void *data)
}
res = 8 * MOH_MS_INTERVAL; /* 8 samples per millisecond */
}
- if ((strncasecmp(class->dir, "http://", 7) || !strcasecmp(class->dir, "nodir")) && AST_LIST_EMPTY(&class->members))
+ if ((strncasecmp(class->dir, "http://", 7) && strncasecmp(class->dir, "nodir")) && AST_LIST_EMPTY(&class->members))
continue;
/* Read mp3 audio */
len = ast_codec_get_len(class->format, res);