avdemux: Use av_packet_unref() instead of deprecated av_free_packet()

This commit is contained in:
Sebastian Dröge 2016-01-19 09:39:00 +02:00
parent 1d7d7033bc
commit fce3e0ba66

View file

@ -1526,7 +1526,7 @@ gst_ffmpegdemux_loop (GstFFMpegDemux * demux)
done: done:
/* can destroy the packet now */ /* can destroy the packet now */
av_free_packet (&pkt); av_packet_unref (&pkt);
return; return;
@ -1603,7 +1603,7 @@ drop:
GST_DEBUG_OBJECT (demux, "dropping buffer out of segment, stream eos"); GST_DEBUG_OBJECT (demux, "dropping buffer out of segment, stream eos");
stream->eos = TRUE; stream->eos = TRUE;
if (gst_ffmpegdemux_is_eos (demux)) { if (gst_ffmpegdemux_is_eos (demux)) {
av_free_packet (&pkt); av_packet_unref (&pkt);
GST_DEBUG_OBJECT (demux, "we are eos"); GST_DEBUG_OBJECT (demux, "we are eos");
ret = GST_FLOW_EOS; ret = GST_FLOW_EOS;
goto pause; goto pause;