]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res/res_stasis_playback: Cancel the entire playlist when a stop occurs 35/3835/1
authorMatt Jordan <mjordan@digium.com>
Tue, 6 Sep 2016 20:25:28 +0000 (15:25 -0500)
committerMatt Jordan <mjordan@digium.com>
Tue, 6 Sep 2016 20:25:28 +0000 (15:25 -0500)
commit827b235357782d5f3be62092c405af368f28180b
tree54bb5481ff19889654a7479830c927fc357ff7cf
parent74a5bbfc1bc1552b2eef0c2584909e8e95848f00
res/res_stasis_playback: Cancel the entire playlist when a stop occurs

Prior to this patch, a stop issued by a delete of a Playback resource
(indicated by the control frame AST_CONTROL_STREAM_STOP) would only stop
the current media URI playing. Subsequent URIs specified by a playback
operation would then proceed on, even though we had just indicated to
the User that the Playback was finished *and* after they had just
'deleted' the resource. Whoops.

This patch corrects it by bailing out of the sequence of URIs to play if
one of them is terminated with an AST_CONTROL_STREAM_STOP indication.

ASTERISK-26341 #close

Change-Id: I2da9ec43545ba46cdfffe287c7e4907eae7fca42
res/res_stasis_playback.c