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