mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 22:46:35 +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);
|
self = GST_AGGREGATOR (element);
|
||||||
|
|
||||||
if (templ == gst_element_class_get_pad_template (klass, "sink_%u")) {
|
if (templ == gst_element_class_get_pad_template (klass, "sink_%u")) {
|
||||||
guint serial = 0;
|
gint serial = 0;
|
||||||
gchar *name = NULL;
|
gchar *name = NULL;
|
||||||
|
|
||||||
GST_OBJECT_LOCK (element);
|
GST_OBJECT_LOCK (element);
|
||||||
|
@ -756,7 +756,7 @@ _request_new_pad (GstElement * element,
|
||||||
/* parse serial number from requested padname */
|
/* parse serial number from requested padname */
|
||||||
serial = g_ascii_strtoull (&req_name[5], NULL, 10);
|
serial = g_ascii_strtoull (&req_name[5], NULL, 10);
|
||||||
if (serial >= priv->padcount)
|
if (serial >= priv->padcount)
|
||||||
priv->padcount = serial + 1;
|
priv->padcount = serial;
|
||||||
}
|
}
|
||||||
|
|
||||||
name = g_strdup_printf ("sink_%u", priv->padcount);
|
name = g_strdup_printf ("sink_%u", priv->padcount);
|
||||||
|
|
Loading…
Reference in a new issue