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 /doc/filters.texi | |
parent | fb0688b079c3751bcd4d64200280858a33e0b9cc (diff) | |
download | ffmpeg-streaming-4ce87ecf2a8a8a9348f9bdbb420f3bee92e6513f.zip ffmpeg-streaming-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 'doc/filters.texi')
-rw-r--r-- | doc/filters.texi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 37d9e40..dd5b32c 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -1033,6 +1033,8 @@ Synthesize a voice utterance using the libflite library. To enable compilation of this filter you need to configure FFmpeg with @code{--enable-libflite}. +Note that the flite library is not thread-safe. + The source accepts parameters as a list of @var{key}=@var{value} pairs, separated by ":". |