underscore = strchr (str, '_');
str = strchr (str + 1, '%');
- if (str && (!underscore || (underscore && str < underscore))) {
+ if (str && (!underscore || str < underscore)) {
g_warning
("invalid name template %s: each of conversion specifications "
"must be separated by an underscore", name);
*
* Converts a #GstStaticPadTemplate into a #GstPadTemplate with a type.
*
- * Returns: (transfer floating): a new #GstPadTemplate.
+ * Returns: (transfer floating) (nullable): a new #GstPadTemplate.
*
* Since: 1.14
*/
* Creates a new pad template with a name according to the given template
* and with the given arguments.
*
- * Returns: (transfer floating): a new #GstPadTemplate.
+ * Returns: (transfer floating) (nullable): a new #GstPadTemplate.
*
* Since: 1.14
*/