diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-03 19:54:02 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-03 19:54:02 +0000 |
commit | 7e68abc1d7be300ba8384a83aa274fe2211760b2 (patch) | |
tree | b4ddc8aad348848717d71fdad57a56ecbbde8fb4 /res/res_musiconhold.c | |
parent | 27eaeced29df80b2fe69d8d16e68f8fbbd3b836b (diff) |
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/branches/1.2@38825 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_musiconhold.c')
-rw-r--r-- | res/res_musiconhold.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 01d8a57d6..426965a81 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -219,7 +219,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; } |