mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
ges/ges-track-transition.c: give gnloperations a unique name
This commit is contained in:
parent
899f4f35c5
commit
962a1d17d7
1 changed files with 6 additions and 2 deletions
|
@ -141,8 +141,12 @@ ges_track_transition_create_gnl_object (GESTrackObject * object)
|
|||
{
|
||||
GESTrackTransition *self = GES_TRACK_TRANSITION (object);
|
||||
|
||||
object->gnlobject = gst_element_factory_make ("gnloperation",
|
||||
"transition-operation");
|
||||
static gint tnum = 0;
|
||||
|
||||
gchar *name = g_strdup_printf ("transition-operation%d", tnum++);
|
||||
object->gnlobject = gst_element_factory_make ("gnloperation", name);
|
||||
g_free (name);
|
||||
|
||||
g_object_set (object->gnlobject, "priority", 0, NULL);
|
||||
g_signal_connect (G_OBJECT (object->gnlobject), "notify::duration",
|
||||
G_CALLBACK (gnlobject_duration_cb), object);
|
||||
|
|
Loading…
Reference in a new issue