[asterisk-commits] file: trunk r86755 - in /trunk: ./ apps/app_controlplayback.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 22 11:19:02 CDT 2007


Author: file
Date: Mon Oct 22 11:19:01 2007
New Revision: 86755

URL: http://svn.digium.com/view/asterisk?view=rev&rev=86755
Log:
Merged revisions 86754 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r86754 | file | 2007-10-22 13:15:18 -0300 (Mon, 22 Oct 2007) | 4 lines

Make sure res is a positive value before performing the check to determine whether the user stopped it or not.
(closes issue #11023)
Reported by: cfc

........

Modified:
    trunk/   (props changed)
    trunk/apps/app_controlplayback.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/apps/app_controlplayback.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_controlplayback.c?view=diff&rev=86755&r1=86754&r2=86755
==============================================================================
--- trunk/apps/app_controlplayback.c (original)
+++ trunk/apps/app_controlplayback.c Mon Oct 22 11:19:01 2007
@@ -142,7 +142,7 @@
 	res = ast_control_streamfile(chan, args.filename, args.fwd, args.rev, args.stop, args.pause, args.restart, skipms, &offsetms);
 
 	/* If we stopped on one of our stop keys, return 0  */
-	if (args.stop && strchr(args.stop, res)) {
+	if (res > 0 && args.stop && strchr(args.stop, res)) {
 		res = 0;
 		pbx_builtin_setvar_helper(chan, "CPLAYBACKSTATUS", "USERSTOPPED");
 	} else {




More information about the asterisk-commits mailing list