summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2013-07-29 11:05:09 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-07-29 11:05:09 +0200
commit4aef70fed13176bf0dde8dec18d28b839b5618d6 (patch)
treeb7305d503f9ac8f762a53bd4d9b0fbf69ed7b626 /plugins
parenteb67ca762556dad9815f20f46443559cd8a3a3c9 (diff)
typefind: Only advance offset by the number of bytes we actually read
There might be a short read at EOS.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/elements/gsttypefindelement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c
index ba1bd5724..c29841423 100644
--- a/plugins/elements/gsttypefindelement.c
+++ b/plugins/elements/gsttypefindelement.c
@@ -1088,7 +1088,7 @@ gst_type_find_element_loop (GstPad * pad)
if (ret != GST_FLOW_OK)
goto pause;
- typefind->offset += 4096;
+ typefind->offset += gst_buffer_get_size (outbuf);
ret = gst_pad_push (typefind->src, outbuf);
if (ret != GST_FLOW_OK)