diff options
-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; } |