[Gstreamer-openmax] [PATCH 3/5] basesink: add empty change_state function
Felipe Contreras
felipe.contreras at gmail.com
Tue Mar 24 14:59:05 PDT 2009
Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>
---
omx/gstomx_base_sink.c | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/omx/gstomx_base_sink.c b/omx/gstomx_base_sink.c
index 0f22f14..2e29312 100644
--- a/omx/gstomx_base_sink.c
+++ b/omx/gstomx_base_sink.c
@@ -63,6 +63,28 @@ setup_ports (GstOmxBaseSink *self)
free (param);
}
+static GstStateChangeReturn
+change_state (GstElement *element,
+ GstStateChange transition)
+{
+ GstStateChangeReturn ret = GST_STATE_CHANGE_SUCCESS;
+ GstOmxBaseSink *self;
+
+ self = GST_OMX_BASE_SINK (element);
+
+ GST_LOG_OBJECT (self, "begin");
+
+ GST_INFO_OBJECT (self, "changing state %s - %s",
+ gst_element_state_get_name (GST_STATE_TRANSITION_CURRENT (transition)),
+ gst_element_state_get_name (GST_STATE_TRANSITION_NEXT (transition)));
+
+ ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
+
+ GST_LOG_OBJECT (self, "end");
+
+ return ret;
+}
+
static gboolean
stop (GstBaseSink *gst_base)
{
@@ -323,6 +345,8 @@ type_class_init (gpointer g_class,
gobject_class->dispose = dispose;
+ gstelement_class->change_state = change_state;
+
gst_base_sink_class->stop = stop;
gst_base_sink_class->event = handle_event;
gst_base_sink_class->preroll = render;
--
1.6.2.1.316.gedbc2
More information about the Gstreamer-openmax
mailing list