diff mbox series

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

Message ID 20240719165627.5490-2-qyot27@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/2,v2] avformat/avisynth: remove atexit() handler | expand

Commit Message

Stephen Hutchinson July 19, 2024, 4:56 p.m. UTC
Signed-off-by: Stephen Hutchinson <qyot27@gmail.com>
---
Changes compared to v1:
* Adjusted for patch #1's inclusion of dlclose

 libavformat/avisynth.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Stephen Hutchinson Aug. 13, 2024, 7:19 p.m. UTC | #1
On 7/19/24 12:56 PM, Stephen Hutchinson wrote:
> Signed-off-by: Stephen Hutchinson <qyot27@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.
diff mbox series

Patch

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;
 }