From 2410854b3c22fb3b34e267d5b46221c60ffbfa82 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Thu, 3 Aug 2006 19:55:05 +0000 Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/trunk@38826 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_musiconhold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index b4b6272..c0d29ac 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; } -- 1.7.9.5