]> git.ipfire.org Git - thirdparty/asterisk.git/commit
file: Ensure nativeformats remains valid for lifetime of use. 62/2762/2
authorJoshua Colp <jcolp@digium.com>
Thu, 5 May 2016 10:07:50 +0000 (07:07 -0300)
committerJoshua Colp <jcolp@digium.com>
Thu, 5 May 2016 16:01:12 +0000 (13:01 -0300)
commitfa11f4c920226da3677a4e7ff95649994036462f
treee1a86b9ebeca9dbd93561251e08a064bc431ca1d
parent8aef2c4156d64ff008cc9073f3e08c32d356be2c
file: Ensure nativeformats remains valid for lifetime of use.

It is possible for the nativeformats of a channel to change
throughout its lifetime. As a result a user of it needs to either
ensure the channel is locked when accessing the formats or keep
a reference to the nativeformats themselves.

This change fixes the file playback support so it keeps a
reference to the nativeformats when accessing things.

ASTERISK-25998 #close

Change-Id: Ie45b65475e1481ddf05b874ee48f63e39fff8915
main/file.c