]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_mp3: remove 10 seconds of silence after mp3 playback
authorSam Wierema <sam@messagebird.com>
Tue, 12 Jun 2018 14:30:37 +0000 (16:30 +0200)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 15 Jun 2018 12:24:37 +0000 (06:24 -0600)
commit4c7ab73468878ad4c9b9df2b67111df78266b50e
treedcd04a6f4c4156d59a05f78d2498e784158b9cf8
parent782064852a4dba33406c6a8fa94b9d9eecdeff84
app_mp3: remove 10 seconds of silence after mp3 playback

This patch changes the way asterisk polls output from mpg123, instead
of waiting for 10 seconds(when playing an http url) it now uses a
timeout of one second and iterates 10 times using this same timeout.

The main difference is that for every timeout asterisk receives it now
checks if mpg123 is still running before poll again.

ASTERISK-27752

Change-Id: Ib7df8462e3e380cb328011890ad9270d9e9b4620
apps/app_mp3.c