typefind: Only advance offset by the number of bytes we actually read

There might be a short read at EOS.
This commit is contained in:
Sebastian Dröge 2013-07-29 11:05:09 +02:00
parent eb67ca7625
commit 4aef70fed1

View file

@ -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)