Commit c93cde0a authored by Wim Taymans's avatar Wim Taymans
Browse files

filesrc: only update buffer size on short read

parent 69e3639c
......@@ -369,7 +369,8 @@ gst_file_src_fill (GstBaseSrc * basesrc, guint64 offset, guint length,
gst_buffer_unmap (buf, &info);
gst_buffer_resize (buf, 0, bytes_read);
if (bytes_read != length)
gst_buffer_resize (buf, 0, bytes_read);
GST_BUFFER_OFFSET (buf) = offset;
GST_BUFFER_OFFSET_END (buf) = offset + bytes_read;
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