mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
asfmux: don't use buffer after giving away ownership
https://bugzilla.gnome.org/show_bug.cgi?id=719553
This commit is contained in:
parent
00dec2e743
commit
bc7989071f
1 changed files with 5 additions and 1 deletions
|
@ -376,9 +376,13 @@ static GstFlowReturn
|
|||
gst_asf_mux_push_buffer (GstAsfMux * asfmux, GstBuffer * buf)
|
||||
{
|
||||
GstFlowReturn ret;
|
||||
gsize bufsize = gst_buffer_get_size (buf);
|
||||
|
||||
ret = gst_pad_push (asfmux->srcpad, buf);
|
||||
|
||||
if (ret == GST_FLOW_OK)
|
||||
asfmux->file_size += gst_buffer_get_size (buf);
|
||||
asfmux->file_size += bufsize;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue