From 7162290afe2de9982dcb9ef65c37cf68ba7484e7 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 4 Mar 2010 08:58:36 +0100 Subject: [PATCH] ffmpegdemux: Use av_free_packet. Fixes #611782 --- ext/ffmpeg/gstffmpegdemux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/ffmpeg/gstffmpegdemux.c b/ext/ffmpeg/gstffmpegdemux.c index fba3dc2bd5..c6e24e8d68 100644 --- a/ext/ffmpeg/gstffmpegdemux.c +++ b/ext/ffmpeg/gstffmpegdemux.c @@ -1458,7 +1458,7 @@ gst_ffmpegdemux_loop (GstFFMpegDemux * demux) done: /* can destroy the packet now */ - pkt.destruct (&pkt); + av_free_packet (&pkt); return; @@ -1536,7 +1536,7 @@ drop: GST_DEBUG_OBJECT (demux, "dropping buffer out of segment, stream eos"); stream->eos = TRUE; if (gst_ffmpegdemux_is_eos (demux)) { - pkt.destruct (&pkt); + av_free_packet (&pkt); GST_DEBUG_OBJECT (demux, "we are eos"); ret = GST_FLOW_UNEXPECTED; goto pause; @@ -1547,7 +1547,7 @@ drop: } no_buffer: { - pkt.destruct (&pkt); + av_free_packet (&pkt); goto pause; } }