mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
gst/elements/gstbufferstore.c: don't try to make subbuffers bigger than they can be. (fixes #159970)
Original commit message from CVS: * gst/elements/gstbufferstore.c: (gst_buffer_store_add_buffer_func): don't try to make subbuffers bigger than they can be. (fixes #159970)
This commit is contained in:
parent
88b88555a4
commit
802e18724d
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-12-01 Benjamin Otte <otte@gnome.org>
|
||||||
|
|
||||||
|
* gst/elements/gstbufferstore.c:
|
||||||
|
(gst_buffer_store_add_buffer_func):
|
||||||
|
don't try to make subbuffers bigger than they can be. (fixes
|
||||||
|
#159970)
|
||||||
|
|
||||||
2004-11-29 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
2004-11-29 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* docs/gst/gstreamer-sections.txt:
|
* docs/gst/gstreamer-sections.txt:
|
||||||
|
|
|
@ -208,7 +208,7 @@ gst_buffer_store_add_buffer_func (GstBufferStore * store, GstBuffer * buffer)
|
||||||
start_offset = GST_BUFFER_OFFSET (buffer) > start_offset ? 0 :
|
start_offset = GST_BUFFER_OFFSET (buffer) > start_offset ? 0 :
|
||||||
start_offset - GST_BUFFER_OFFSET (buffer);
|
start_offset - GST_BUFFER_OFFSET (buffer);
|
||||||
sub = gst_buffer_create_sub (buffer, start_offset,
|
sub = gst_buffer_create_sub (buffer, start_offset,
|
||||||
MIN (GST_BUFFER_SIZE (buffer),
|
MIN (GST_BUFFER_SIZE (buffer) - start_offset,
|
||||||
GST_BUFFER_OFFSET (current) - start_offset -
|
GST_BUFFER_OFFSET (current) - start_offset -
|
||||||
GST_BUFFER_OFFSET (buffer)));
|
GST_BUFFER_OFFSET (buffer)));
|
||||||
g_assert (sub);
|
g_assert (sub);
|
||||||
|
|
|
@ -208,7 +208,7 @@ gst_buffer_store_add_buffer_func (GstBufferStore * store, GstBuffer * buffer)
|
||||||
start_offset = GST_BUFFER_OFFSET (buffer) > start_offset ? 0 :
|
start_offset = GST_BUFFER_OFFSET (buffer) > start_offset ? 0 :
|
||||||
start_offset - GST_BUFFER_OFFSET (buffer);
|
start_offset - GST_BUFFER_OFFSET (buffer);
|
||||||
sub = gst_buffer_create_sub (buffer, start_offset,
|
sub = gst_buffer_create_sub (buffer, start_offset,
|
||||||
MIN (GST_BUFFER_SIZE (buffer),
|
MIN (GST_BUFFER_SIZE (buffer) - start_offset,
|
||||||
GST_BUFFER_OFFSET (current) - start_offset -
|
GST_BUFFER_OFFSET (current) - start_offset -
|
||||||
GST_BUFFER_OFFSET (buffer)));
|
GST_BUFFER_OFFSET (buffer)));
|
||||||
g_assert (sub);
|
g_assert (sub);
|
||||||
|
|
Loading…
Reference in a new issue