From 7d916c73776bcb198e80e4cfe814d67ff100fa0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Wed, 4 Dec 2024 16:27:54 +0100 Subject: [PATCH] libav: free protocol info in gst_ffmpeg_pipe_close When the media is not seekable, we are calling gst_ffmpeg_pipe_close which does free the info. Part-of: --- subprojects/gst-libav/ext/libav/gstavprotocol.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/subprojects/gst-libav/ext/libav/gstavprotocol.c b/subprojects/gst-libav/ext/libav/gstavprotocol.c index 2fa1bce953..66b43b1873 100644 --- a/subprojects/gst-libav/ext/libav/gstavprotocol.c +++ b/subprojects/gst-libav/ext/libav/gstavprotocol.c @@ -332,10 +332,17 @@ int gst_ffmpeg_pipe_close (AVIOContext * h) { GST_LOG ("Closing pipe"); + GstProtocolInfo *info; if (h == NULL) return 0; + info = (GstProtocolInfo *) h->opaque; + if (info == NULL) + return 0; + + g_free (info); + h->opaque = NULL; av_freep (&h->buffer); av_free (h);