[FFmpeg-devel] [PATCH 2/2 v2] avformat/avisynth: remove mutex lock from avisynth_read_close

Stephen Hutchinson qyot27 at gmail.com
Tue Aug 13 22:19:32 EEST 2024


On 7/19/24 12:56 PM, Stephen Hutchinson wrote:
> Signed-off-by: Stephen Hutchinson <qyot27 at gmail.com>
> ---
> Changes compared to v1:
> * Adjusted for patch #1's inclusion of dlclose
> 
>   libavformat/avisynth.c | 4 ----
>   1 file changed, 4 deletions(-)
> 
> diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
> index 26747671c0..b01263e010 100644
> --- a/libavformat/avisynth.c
> +++ b/libavformat/avisynth.c
> @@ -1085,12 +1085,8 @@ static int avisynth_read_packet(AVFormatContext *s, AVPacket *pkt)
>   
>   static av_cold int avisynth_read_close(AVFormatContext *s)
>   {
> -    if (ff_mutex_lock(&avisynth_mutex))
> -        return AVERROR_UNKNOWN;
> -
>       avisynth_context_destroy(s->priv_data);
>       dlclose(avs_library.library);
> -    ff_mutex_unlock(&avisynth_mutex);
>       return 0;
>   }
>   

Pushed.


More information about the ffmpeg-devel mailing list