[asterisk-commits] russell: branch russell/issue_13566 r166094 - /team/russell/issue_13566/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Dec 19 16:36:20 CST 2008


Author: russell
Date: Fri Dec 19 16:36:20 2008
New Revision: 166094

URL: http://svn.digium.com/view/asterisk?view=rev&rev=166094
Log:
Remove this check completely, as 0 can be valid here

Modified:
    team/russell/issue_13566/res/res_musiconhold.c

Modified: team/russell/issue_13566/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/team/russell/issue_13566/res/res_musiconhold.c?view=diff&rev=166094&r1=166093&r2=166094
==============================================================================
--- team/russell/issue_13566/res/res_musiconhold.c (original)
+++ team/russell/issue_13566/res/res_musiconhold.c Fri Dec 19 16:36:20 2008
@@ -742,10 +742,6 @@
 	short buf[1280 + AST_FRIENDLY_OFFSET / 2];
 	int res;
 
-	if (!moh->parent->pid) {
-		return -1;
-	}
-
 	len = ast_codec_get_len(moh->parent->format, samples);
 
 	if (len > sizeof(buf) - AST_FRIENDLY_OFFSET) {




More information about the asterisk-commits mailing list