gchar *name = NULL;
GstVideoMixerCollect *mixcol = NULL;
- if (req_name == NULL || strlen (req_name) < 6) {
+ GST_VIDEO_MIXER_STATE_LOCK (mix);
+ if (req_name == NULL || strlen (req_name) < 6
+ || !g_str_has_prefix (req_name, "sink_")) {
/* no name given when requesting the pad, use next available int */
serial = mix->next_sinkpad++;
} else {
templ->direction, "template", templ, NULL);
g_free (name);
- GST_VIDEO_MIXER_STATE_LOCK (mix);
mixpad->zorder = mix->numpads;
mixpad->xpos = DEFAULT_PAD_XPOS;
mixpad->ypos = DEFAULT_PAD_YPOS;