mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
timeline-element: Properly handle setting name to NULL
This commit is contained in:
parent
6367c96d7d
commit
b7daa03a6e
1 changed files with 2 additions and 1 deletions
|
@ -1036,6 +1036,7 @@ ges_timeline_element_get_name (GESTimelineElement * self)
|
|||
/**
|
||||
* ges_timeline_element_set_name:
|
||||
* @self: a #GESTimelineElement
|
||||
* @name: (allow-none): The name @self should take (if avalaible<)
|
||||
*
|
||||
*
|
||||
* Sets the name of object, or gives @self a guaranteed unique name (if name is NULL).
|
||||
|
@ -1055,7 +1056,7 @@ ges_timeline_element_set_name (GESTimelineElement * self, const gchar * name)
|
|||
}
|
||||
|
||||
/* parented objects cannot be renamed */
|
||||
if (self->timeline != NULL) {
|
||||
if (self->timeline != NULL && name) {
|
||||
GESTimelineElement *tmp = ges_timeline_get_element (self->timeline, name);
|
||||
|
||||
if (tmp) {
|
||||
|
|
Loading…
Reference in a new issue