On Wed, Oct 26, 2011 at 11:28 AM, Stefan Sauer <
[hidden email]> [...]
> - ret = g_object_new (GST_TYPE_OGG_PAD, NULL);
> + name = g_strdup_printf ("serial_%08x", serialno);
> + ret = g_object_new (GST_TYPE_OGG_PAD, "name", name, NULL);
> + g_free (name);
>
> what about gchar name[sizeof("serial_")+8] while you are on it
Yeah good point. I have seen these in multiple places, sometimes one
way and sometimes the other. I guess the g_snprintf method is
preferable everywhere.
--René
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel