projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00dec2e
)
asfmux: don't use buffer after giving away ownership
author
Tim-Philipp Müller
<tim@centricular.com>
Fri, 29 Nov 2013 13:22:56 +0000
(13:22 +0000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Fri, 29 Nov 2013 13:22:56 +0000
(13:22 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=719553
gst/asfmux/gstasfmux.c
patch
|
blob
|
history
diff --git
a/gst/asfmux/gstasfmux.c
b/gst/asfmux/gstasfmux.c
index 21bb14c2e138bee74ab9aa2920c39fa5ba111bbc..1ed0e07076f1fdcac42f12f37624735d101f15fb 100644
(file)
--- 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;
}