aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_controlplayback.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-22 16:19:01 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-22 16:19:01 +0000
commitba1e5ca81f464f3231612c3e6f86e33d779f245d (patch)
treed1b0218e521e011a0cefb5294ee2f94ce9ca2e14 /apps/app_controlplayback.c
parentb5b82ad0b0fbb6152db51aef21919b73e34c6a98 (diff)
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 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86755 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_controlplayback.c')
-rw-r--r--apps/app_controlplayback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_controlplayback.c b/apps/app_controlplayback.c
index c7eb59184..18b8d4327 100644
--- a/apps/app_controlplayback.c
+++ b/apps/app_controlplayback.c
@@ -142,7 +142,7 @@ static int controlplayback_exec(struct ast_channel *chan, void *data)
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 {