mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
asfdemux: don't leak payload if we are not pushing it
This commit is contained in:
parent
2a0945887e
commit
0c6e50a7b8
1 changed files with 1 additions and 0 deletions
|
@ -1520,6 +1520,7 @@ gst_asf_demux_push_complete_payloads (GstASFDemux * demux, gboolean force)
|
|||
ret = gst_pad_push (stream->pad, payload->buf);
|
||||
ret = gst_asf_demux_aggregate_flow_return (demux, stream, ret);
|
||||
} else {
|
||||
gst_buffer_unref (payload->buf);
|
||||
ret = GST_FLOW_OK;
|
||||
}
|
||||
payload->buf = NULL;
|
||||
|
|
Loading…
Reference in a new issue