diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-07-28 11:53:18 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-07-28 15:13:46 +0200 |
commit | 4ce87ecf2a8a8a9348f9bdbb420f3bee92e6513f (patch) | |
tree | 9f5eeb097060816e870e4cf394c96030bc6433ad /COPYING.GPLv2 | |
parent | fb0688b079c3751bcd4d64200280858a33e0b9cc (diff) | |
download | ffmpeg-4ce87ecf2a8a8a9348f9bdbb420f3bee92e6513f.tar.gz |
asrc_flite: do not crash on multiple instances.
The voice register functions return the same voice structure
upon multiple registration. It causes us two problems:
If we delete a voice without deregistering it, it leaves
a dangling pointer inside the library.
If we delete or unregister a voice at uninit, it may still
be in use by another instance of the filter.
The second problem is solved by keeping an usage counter inside
asrc_flite. This is not thread-safe, but neither is flite itself.
Diffstat (limited to 'COPYING.GPLv2')
0 files changed, 0 insertions, 0 deletions