[asterisk-commits] file: branch 1.2 r38825 -
/branches/1.2/res/res_musiconhold.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Aug 3 12:54:03 MST 2006
Author: file
Date: Thu Aug 3 14:54:02 2006
New Revision: 38825
URL: http://svn.digium.com/view/asterisk?rev=38825&view=rev
Log:
Treat the file as invalid if we have no valid formats for it (issue #7643 reported by KNK)
Modified:
branches/1.2/res/res_musiconhold.c
Modified: branches/1.2/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/res/res_musiconhold.c?rev=38825&r1=38824&r2=38825&view=diff
==============================================================================
--- branches/1.2/res/res_musiconhold.c (original)
+++ branches/1.2/res/res_musiconhold.c Thu Aug 3 14:54:02 2006
@@ -219,7 +219,7 @@
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;
}
More information about the asterisk-commits
mailing list