mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
libs/gst/base/gstadapter.c: Fix format string to use all its arguments.
Original commit message from CVS: * libs/gst/base/gstadapter.c: (gst_adapter_flush), (gst_adapter_take_buffer): Fix format string to use all its arguments. Remove useless >= check on a guint
This commit is contained in:
parent
ee1a56dff6
commit
2af1fde183
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-11-10 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* libs/gst/base/gstadapter.c: (gst_adapter_flush),
|
||||
(gst_adapter_take_buffer):
|
||||
Fix format string to use all its arguments.
|
||||
Remove useless >= check on a guint
|
||||
|
||||
2006-11-09 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* tests/examples/adapter/.cvsignore:
|
||||
|
|
|
@ -318,7 +318,6 @@ gst_adapter_flush (GstAdapter * adapter, guint flush)
|
|||
GstBuffer *cur;
|
||||
|
||||
g_return_if_fail (GST_IS_ADAPTER (adapter));
|
||||
g_return_if_fail (flush >= 0);
|
||||
g_return_if_fail (flush <= adapter->size);
|
||||
|
||||
GST_LOG_OBJECT (adapter, "flushing %u bytes", flush);
|
||||
|
@ -423,7 +422,8 @@ gst_adapter_take_buffer (GstAdapter * adapter, guint nbytes)
|
|||
/* our head buffer has enough data left, return it */
|
||||
cur = adapter->buflist->data;
|
||||
if (GST_BUFFER_SIZE (cur) >= nbytes + adapter->skip) {
|
||||
GST_LOG_OBJECT (adapter, "providing buffer via sub-buffer", nbytes);
|
||||
GST_LOG_OBJECT (adapter, "providing buffer of %d bytes via sub-buffer",
|
||||
nbytes);
|
||||
buffer = gst_buffer_create_sub (cur, adapter->skip, nbytes);
|
||||
|
||||
gst_adapter_flush (adapter, nbytes);
|
||||
|
|
Loading…
Reference in a new issue