mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-26 09:50:39 +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
80431b497d
commit
7392c42263
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue