]> 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)
committerSam Wierema <sam@messagebird.com>
Fri, 15 Jun 2018 13:24:15 +0000 (07:24 -0600)
commitbb0ce22b2bc4350f96c3dc183e9a0598fc2e1fc7
tree3be2e70f212b608b487ed0ec397d1947fbcbcc72
parentc72aef9657ce42937591b622ccb657c473b00e06
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