From d8bee3c769b8416fe5fc1b44d629d02c94b4df0d Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Fri, 3 Oct 2014 13:47:42 +0200 Subject: [PATCH] inputselector: fix printf format The padcount is uint. Also add comments to the instance vars. --- plugins/elements/gstinputselector.c | 2 +- plugins/elements/gstinputselector.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c index d4a3e2b93c..0f6a961fc8 100644 --- a/plugins/elements/gstinputselector.c +++ b/plugins/elements/gstinputselector.c @@ -1688,7 +1688,7 @@ gst_input_selector_request_new_pad (GstElement * element, GST_INPUT_SELECTOR_LOCK (sel); - GST_LOG_OBJECT (sel, "Creating new pad %d", sel->padcount); + GST_LOG_OBJECT (sel, "Creating new pad sink_%u", sel->padcount); name = g_strdup_printf ("sink_%u", sel->padcount++); sinkpad = g_object_new (GST_TYPE_SELECTOR_PAD, "name", name, "direction", templ->direction, "template", templ, NULL); diff --git a/plugins/elements/gstinputselector.h b/plugins/elements/gstinputselector.h index 96c680fd01..0799817216 100644 --- a/plugins/elements/gstinputselector.h +++ b/plugins/elements/gstinputselector.h @@ -66,8 +66,8 @@ struct _GstInputSelector { GstPad *srcpad; GstPad *active_sinkpad; - guint n_pads; - guint padcount; + guint n_pads; /* number of pads */ + guint padcount; /* sequence number for pads */ gboolean sync_streams; GstInputSelectorSyncMode sync_mode; gboolean cache_buffers;