mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
timelineobject: Misc API guard fixes
This commit is contained in:
parent
efc28fd35e
commit
30d9ba2acf
1 changed files with 6 additions and 2 deletions
|
@ -477,6 +477,7 @@ ges_timeline_object_create_track_objects (GESTimelineObject * object,
|
||||||
GST_WARNING ("no GESTimelineObject::create_track_objects implentation");
|
GST_WARNING ("no GESTimelineObject::create_track_objects implentation");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return klass->create_track_objects (object, track);
|
return klass->create_track_objects (object, track);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -646,12 +647,13 @@ ges_timeline_object_release_track_object (GESTimelineObject * object,
|
||||||
{
|
{
|
||||||
GList *tmp;
|
GList *tmp;
|
||||||
ObjectMapping *mapping = NULL;
|
ObjectMapping *mapping = NULL;
|
||||||
GESTimelineObjectClass *klass = GES_TIMELINE_OBJECT_GET_CLASS (object);
|
GESTimelineObjectClass *klass;
|
||||||
|
|
||||||
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), FALSE);
|
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), FALSE);
|
||||||
g_return_val_if_fail (GES_IS_TRACK_OBJECT (trackobject), FALSE);
|
g_return_val_if_fail (GES_IS_TRACK_OBJECT (trackobject), FALSE);
|
||||||
|
|
||||||
GST_DEBUG ("object:%p, trackobject:%p", object, trackobject);
|
GST_DEBUG ("object:%p, trackobject:%p", object, trackobject);
|
||||||
|
klass = GES_TIMELINE_OBJECT_GET_CLASS (object);
|
||||||
|
|
||||||
if (!(g_list_find (object->priv->trackobjects, trackobject))) {
|
if (!(g_list_find (object->priv->trackobjects, trackobject))) {
|
||||||
GST_WARNING ("TrackObject isn't controlled by this object");
|
GST_WARNING ("TrackObject isn't controlled by this object");
|
||||||
|
@ -977,7 +979,7 @@ void
|
||||||
ges_timeline_object_set_moving_from_layer (GESTimelineObject * object,
|
ges_timeline_object_set_moving_from_layer (GESTimelineObject * object,
|
||||||
gboolean is_moving)
|
gboolean is_moving)
|
||||||
{
|
{
|
||||||
g_return_if_fail (GES_IS_TRACK_OBJECT (object));
|
g_return_if_fail (GES_IS_TIMELINE_OBJECT (object));
|
||||||
|
|
||||||
object->priv->is_moving = is_moving;
|
object->priv->is_moving = is_moving;
|
||||||
}
|
}
|
||||||
|
@ -997,6 +999,8 @@ ges_timeline_object_set_moving_from_layer (GESTimelineObject * object,
|
||||||
gboolean
|
gboolean
|
||||||
ges_timeline_object_is_moving_from_layer (GESTimelineObject * object)
|
ges_timeline_object_is_moving_from_layer (GESTimelineObject * object)
|
||||||
{
|
{
|
||||||
|
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), FALSE);
|
||||||
|
|
||||||
return object->priv->is_moving;
|
return object->priv->is_moving;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue