We were requiring it only for GESCustomTimelineSource, but it is not actually
necessary so, we can just check if the TrackObject is in a TimelineObject or
not, and react accordingly.
GESTrackObjectClass *class;
GstElement *gnlobject;
GHashTable *props_hash;
- gboolean res = FALSE;
+ gboolean res = TRUE;
if (object->priv->gnlobject && object->priv->valid)
return FALSE;
if (gnlobject) {
GST_DEBUG ("Got a valid GnlObject, now filling it in");
- res =
- ges_timeline_object_fill_track_object (object->priv->timelineobj,
- object, object->priv->gnlobject);
+ if (object->priv->timelineobj)
+ res = ges_timeline_object_fill_track_object (object->priv->timelineobj,
+ object, object->priv->gnlobject);
+ else
+ res = TRUE;
+
if (res) {
/* Connect to property notifications */
/* FIXME : remember the signalids so we can remove them later on !!! */