mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8070>
This commit is contained in:
parent
f7da069496
commit
7d916c7377
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue