Commit 4aef70fe authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

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

There might be a short read at EOS.
parent eb67ca76
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment