mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
avdemux: Use av_packet_unref() instead of deprecated av_free_packet()
This commit is contained in:
parent
1d7d7033bc
commit
fce3e0ba66
1 changed files with 2 additions and 2 deletions
|
@ -1526,7 +1526,7 @@ gst_ffmpegdemux_loop (GstFFMpegDemux * demux)
|
|||
|
||||
done:
|
||||
/* can destroy the packet now */
|
||||
av_free_packet (&pkt);
|
||||
av_packet_unref (&pkt);
|
||||
|
||||
return;
|
||||
|
||||
|
@ -1603,7 +1603,7 @@ drop:
|
|||
GST_DEBUG_OBJECT (demux, "dropping buffer out of segment, stream eos");
|
||||
stream->eos = TRUE;
|
||||
if (gst_ffmpegdemux_is_eos (demux)) {
|
||||
av_free_packet (&pkt);
|
||||
av_packet_unref (&pkt);
|
||||
GST_DEBUG_OBJECT (demux, "we are eos");
|
||||
ret = GST_FLOW_EOS;
|
||||
goto pause;
|
||||
|
|
Loading…
Reference in a new issue