aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_musiconhold.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-03 19:55:05 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-03 19:55:05 +0000
commitc330d95877552c173e3659d0ae39f2ab04b69bdc (patch)
tree0288e9dc72d41bef7ca39fa8442c224d2374e679 /res/res_musiconhold.c
parentec4399116a3d1274f52f19f1d95714771d2cffdf (diff)
Merged revisions 38825 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r38825 | file | 2006-08-03 15:54:02 -0400 (Thu, 03 Aug 2006) | 2 lines Treat the file as invalid if we have no valid formats for it (issue #7643 reported by KNK) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38826 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 b4b6272f1..c0d29acd3 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -234,7 +234,7 @@ static int ast_moh_files_next(struct ast_channel *chan)
state->pos %= state->class->total_files;
/* check to see if this file's format can be opened */
- if (ast_fileexists(state->class->filearray[state->pos], NULL, NULL) != -1)
+ if (ast_fileexists(state->class->filearray[state->pos], NULL, NULL) > 0)
break;
}