projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69e3639
)
filesrc: only update buffer size on short read
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 14 Mar 2012 23:25:50 +0000
(
00:25
+0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 15 Mar 2012 12:42:17 +0000
(13:42 +0100)
plugins/elements/gstfilesrc.c
patch
|
blob
|
history
diff --git
a/plugins/elements/gstfilesrc.c
b/plugins/elements/gstfilesrc.c
index
0cc684f
..
12575b9
100644
(file)
--- a/
plugins/elements/gstfilesrc.c
+++ b/
plugins/elements/gstfilesrc.c
@@
-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;