/**
* SECTION:gstpipeline
+ * @title: GstPipeline
* @short_description: Top-level bin with clocking and bus management
functionality.
* @see_also: #GstElement, #GstBin, #GstClock, #GstBus
PROP_LATENCY
};
-#define GST_PIPELINE_GET_PRIVATE(obj) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GST_TYPE_PIPELINE, GstPipelinePrivate))
-
struct _GstPipelinePrivate
{
/* with LOCK */
}
#define gst_pipeline_parent_class parent_class
-G_DEFINE_TYPE_WITH_CODE (GstPipeline, gst_pipeline, GST_TYPE_BIN, _do_init);
+G_DEFINE_TYPE_WITH_CODE (GstPipeline, gst_pipeline, GST_TYPE_BIN,
+ G_ADD_PRIVATE (GstPipeline) _do_init);
static void
gst_pipeline_class_init (GstPipelineClass * klass)
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass);
GstBinClass *gstbin_class = GST_BIN_CLASS (klass);
- g_type_class_add_private (klass, sizeof (GstPipelinePrivate));
-
gobject_class->set_property = gst_pipeline_set_property;
gobject_class->get_property = gst_pipeline_get_property;
{
GstBus *bus;
- pipeline->priv = GST_PIPELINE_GET_PRIVATE (pipeline);
+ pipeline->priv = gst_pipeline_get_instance_private (pipeline);
/* set default property values */
pipeline->priv->auto_flush_bus = DEFAULT_AUTO_FLUSH_BUS;
GstPipeline *pipeline = GST_PIPELINE (object);
GstClock **clock_p = &pipeline->fixed_clock;
- GST_CAT_DEBUG_OBJECT (GST_CAT_REFCOUNTING, pipeline, "dispose");
+ GST_CAT_DEBUG_OBJECT (GST_CAT_REFCOUNTING, pipeline, "%p dispose", pipeline);
/* clear and unref any fixed clock */
gst_object_replace ((GstObject **) clock_p, NULL);
GstClock *clock;
switch (transition) {
+ case GST_STATE_CHANGE_NULL_TO_NULL:
+ break;
+ case GST_STATE_CHANGE_READY_TO_READY:
+ break;
+ case GST_STATE_CHANGE_PAUSED_TO_PAUSED:
+ break;
+ case GST_STATE_CHANGE_PLAYING_TO_PLAYING:
+ break;
case GST_STATE_CHANGE_NULL_TO_READY:
GST_OBJECT_LOCK (element);
if (element->bus)
result = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
switch (transition) {
+ case GST_STATE_CHANGE_NULL_TO_NULL:
+ break;
+ case GST_STATE_CHANGE_READY_TO_READY:
+ break;
+ case GST_STATE_CHANGE_PAUSED_TO_PAUSED:
+ break;
+ case GST_STATE_CHANGE_PLAYING_TO_PLAYING:
+ break;
case GST_STATE_CHANGE_NULL_TO_READY:
break;
case GST_STATE_CHANGE_READY_TO_PAUSED: