mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
aggregator: Fix requested pad name
This commit is contained in:
parent
ae91ee2c98
commit
bd03141055
1 changed files with 2 additions and 2 deletions
|
@ -744,7 +744,7 @@ _request_new_pad (GstElement * element,
|
|||
self = GST_AGGREGATOR (element);
|
||||
|
||||
if (templ == gst_element_class_get_pad_template (klass, "sink_%u")) {
|
||||
guint serial = 0;
|
||||
gint serial = 0;
|
||||
gchar *name = NULL;
|
||||
|
||||
GST_OBJECT_LOCK (element);
|
||||
|
@ -756,7 +756,7 @@ _request_new_pad (GstElement * element,
|
|||
/* parse serial number from requested padname */
|
||||
serial = g_ascii_strtoull (&req_name[5], NULL, 10);
|
||||
if (serial >= priv->padcount)
|
||||
priv->padcount = serial + 1;
|
||||
priv->padcount = serial;
|
||||
}
|
||||
|
||||
name = g_strdup_printf ("sink_%u", priv->padcount);
|
||||
|
|
Loading…
Reference in a new issue