mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
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:
parent
eb67ca7625
commit
4aef70fed1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue