[asterisk-commits] file: branch 1.4 r84160 - /branches/1.4/res/res_musiconhold.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 1 08:57:43 CDT 2007


Author: file
Date: Mon Oct  1 08:57:42 2007
New Revision: 84160

URL: http://svn.digium.com/view/asterisk?view=rev&rev=84160
Log:
Fix randomness. save_pos was being set to 0 initially instead of -1, causing it to jump to position 0 when moh started.
(closes issue #10859)
Reported by: jamesgolovich
Patches:
      asterisk-mohpos2.diff.txt uploaded by jamesgolovich (license 176)

Modified:
    branches/1.4/res/res_musiconhold.c

Modified: branches/1.4/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_musiconhold.c?view=diff&rev=84160&r1=84159&r2=84160
==============================================================================
--- branches/1.4/res/res_musiconhold.c (original)
+++ branches/1.4/res/res_musiconhold.c Mon Oct  1 08:57:42 2007
@@ -312,6 +312,7 @@
 	if (!chan->music_state && (state = ast_calloc(1, sizeof(*state)))) {
 		chan->music_state = state;
 		state->class = class;
+		state->save_pos = -1;
 	} else 
 		state = chan->music_state;
 




More information about the asterisk-commits mailing list