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 committed by Tim-Philipp Müller
parent 80431b497d
commit 7392c42263

View file

@ -1081,7 +1081,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)