summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Holmberg <jonashg@axis.com>2015-06-24 15:35:16 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-06-24 16:05:37 +0200
commitfb19ebbd8fc780785b20eb6979d0510ac16e55ce (patch)
treedb9ef2f38da243617be4b19515d8c32ed277fd3c
parent442760555b0c58bd0612d006aa2f50f910249e8e (diff)
bufferpool: Fixed compiler warning
The pool variable was unused when buidling with debug disabled.
-rw-r--r--gst/gstbufferpool.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/gstbufferpool.c b/gst/gstbufferpool.c
index f8657909c..bd53092a2 100644
--- a/gst/gstbufferpool.c
+++ b/gst/gstbufferpool.c
@@ -236,10 +236,8 @@ default_alloc_buffer (GstBufferPool * pool, GstBuffer ** buffer,
static gboolean
mark_meta_pooled (GstBuffer * buffer, GstMeta ** meta, gpointer user_data)
{
- GstBufferPool *pool = user_data;
-
- GST_DEBUG_OBJECT (pool, "marking meta %p as POOLED in buffer %p", *meta,
- buffer);
+ GST_DEBUG_OBJECT (GST_BUFFER_POOL (user_data),
+ "marking meta %p as POOLED in buffer %p", *meta, buffer);
GST_META_FLAG_SET (*meta, GST_META_FLAG_POOLED);
GST_META_FLAG_SET (*meta, GST_META_FLAG_LOCKED);