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:
Jan Schmidt 2006-11-10 10:50:19 +00:00
parent ee1a56dff6
commit 2af1fde183
2 changed files with 9 additions and 2 deletions

View file

@ -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> 2006-11-09 Jan Schmidt <thaytan@mad.scientist.com>
* tests/examples/adapter/.cvsignore: * tests/examples/adapter/.cvsignore:

View file

@ -318,7 +318,6 @@ gst_adapter_flush (GstAdapter * adapter, guint flush)
GstBuffer *cur; GstBuffer *cur;
g_return_if_fail (GST_IS_ADAPTER (adapter)); g_return_if_fail (GST_IS_ADAPTER (adapter));
g_return_if_fail (flush >= 0);
g_return_if_fail (flush <= adapter->size); g_return_if_fail (flush <= adapter->size);
GST_LOG_OBJECT (adapter, "flushing %u bytes", flush); 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 */ /* our head buffer has enough data left, return it */
cur = adapter->buflist->data; cur = adapter->buflist->data;
if (GST_BUFFER_SIZE (cur) >= nbytes + adapter->skip) { 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); buffer = gst_buffer_create_sub (cur, adapter->skip, nbytes);
gst_adapter_flush (adapter, nbytes); gst_adapter_flush (adapter, nbytes);