summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2014-10-03 13:47:42 +0200
committerStefan Sauer <ensonic@users.sf.net>2014-10-03 13:47:42 +0200
commitd8bee3c769b8416fe5fc1b44d629d02c94b4df0d (patch)
treec0a373182071d2842cc85fc2e3b375136a39a5b4 /plugins
parentd8aac32c787c8896a92224c6ac47a1a439dc579a (diff)
inputselector: fix printf format
The padcount is uint. Also add comments to the instance vars.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/elements/gstinputselector.c2
-rw-r--r--plugins/elements/gstinputselector.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c
index d4a3e2b93..0f6a961fc 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 96c680fd0..079981721 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;