mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
gst/elements/gstfilesrc.c: set all the values on buffers that we can
Original commit message from CVS: 2004-02-02 Benjamin Otte <in7y118@public.uni-hamburg.de> * gst/elements/gstfilesrc.c: (gst_filesrc_map_region), (gst_filesrc_get_read): set all the values on buffers that we can
This commit is contained in:
parent
38029f4295
commit
9ec5287a36
3 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-02-02 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||
|
||||
* gst/elements/gstfilesrc.c: (gst_filesrc_map_region),
|
||||
(gst_filesrc_get_read):
|
||||
set all the values on buffers that we can
|
||||
|
||||
2004-02-02 David Schleef <ds@schleef.org>
|
||||
|
||||
Change usage of isblah() to g_ascii_isblah() to be more locale
|
||||
|
|
|
@ -420,6 +420,7 @@ gst_filesrc_map_region (GstFileSrc *src, off_t offset, size_t size)
|
|||
GST_BUFFER_SIZE (buf) = size;
|
||||
GST_BUFFER_MAXSIZE (buf) = size;
|
||||
GST_BUFFER_OFFSET (buf) = offset;
|
||||
GST_BUFFER_OFFSET_END (buf) = offset + size;
|
||||
GST_BUFFER_TIMESTAMP (buf) = GST_CLOCK_TIME_NONE;
|
||||
GST_BUFFER_PRIVATE (buf) = src;
|
||||
g_object_ref (src);
|
||||
|
@ -647,6 +648,10 @@ gst_filesrc_get_read (GstFileSrc *src)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
GST_BUFFER_SIZE (buf) = readsize;
|
||||
GST_BUFFER_MAXSIZE (buf) = readsize;
|
||||
GST_BUFFER_OFFSET (buf) = src->curoffset;
|
||||
GST_BUFFER_OFFSET_END (buf) = src->curoffset + readsize;
|
||||
src->curoffset += readsize;
|
||||
|
||||
return buf;
|
||||
|
|
|
@ -420,6 +420,7 @@ gst_filesrc_map_region (GstFileSrc *src, off_t offset, size_t size)
|
|||
GST_BUFFER_SIZE (buf) = size;
|
||||
GST_BUFFER_MAXSIZE (buf) = size;
|
||||
GST_BUFFER_OFFSET (buf) = offset;
|
||||
GST_BUFFER_OFFSET_END (buf) = offset + size;
|
||||
GST_BUFFER_TIMESTAMP (buf) = GST_CLOCK_TIME_NONE;
|
||||
GST_BUFFER_PRIVATE (buf) = src;
|
||||
g_object_ref (src);
|
||||
|
@ -647,6 +648,10 @@ gst_filesrc_get_read (GstFileSrc *src)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
GST_BUFFER_SIZE (buf) = readsize;
|
||||
GST_BUFFER_MAXSIZE (buf) = readsize;
|
||||
GST_BUFFER_OFFSET (buf) = src->curoffset;
|
||||
GST_BUFFER_OFFSET_END (buf) = src->curoffset + readsize;
|
||||
src->curoffset += readsize;
|
||||
|
||||
return buf;
|
||||
|
|
Loading…
Reference in a new issue