const GValue * value, GParamSpec * pspec);
static void nle_object_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
+static void nle_object_constructed (GObject * object);
static GstStateChangeReturn nle_object_change_state (GstElement * element,
GstStateChange transition);
gobject_class->set_property = GST_DEBUG_FUNCPTR (nle_object_set_property);
gobject_class->get_property = GST_DEBUG_FUNCPTR (nle_object_get_property);
+ gobject_class->constructed = GST_DEBUG_FUNCPTR (nle_object_constructed);
gobject_class->dispose = GST_DEBUG_FUNCPTR (nle_object_dispose);
gstelement_class->change_state = GST_DEBUG_FUNCPTR (nle_object_change_state);
break;
}
GST_OBJECT_UNLOCK (object);
-
- _update_stop (nleobject);
}
static void
}
}
+static void
+nle_object_constructed (GObject * object)
+{
+ NleObject *nleobject = (NleObject *) object;
+
+ _update_stop (nleobject);
+}
+
static GstStateChangeReturn
nle_object_change_state (GstElement * element, GstStateChange transition)
{
g_object_set (G_OBJECT (nlesource),
"start", start,
"duration", duration, "inpoint", start, "priority", priority, NULL);
+ nle_object_commit (NLE_OBJECT (nlesource), FALSE);
return nlesource;
}