inputselector: fix printf format

The padcount is uint. Also add comments to the instance vars.
This commit is contained in:
Stefan Sauer 2014-10-03 13:47:42 +02:00
parent d8aac32c78
commit d8bee3c769
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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;