aboutsummaryrefslogtreecommitdiff
path: root/gst/asfmux/gstasfmux.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/asfmux/gstasfmux.c')
-rw-r--r--gst/asfmux/gstasfmux.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/asfmux/gstasfmux.c b/gst/asfmux/gstasfmux.c
index 21bb14c2..1ed0e070 100644
--- a/gst/asfmux/gstasfmux.c
+++ b/gst/asfmux/gstasfmux.c
@@ -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;
}