summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2005-09-02 15:44:44 +0000
committerAndy Wingo <wingo@pobox.com>2005-09-02 15:44:44 +0000
commit741afd1f75ed86d96e2f1f1a7d19eb34340ff676 (patch)
tree284c969fb3d1ef0648c2c7556134f2e836be8152
parentd61133baa4bf855d16c9566e4ec229d17d381568 (diff)
downloadgst-plugins-bad-741afd1f75ed86d96e2f1f1a7d19eb34340ff676.tar.gz
gst-plugins-bad-741afd1f75ed86d96e2f1f1a7d19eb34340ff676.tar.bz2
gst-plugins-bad-741afd1f75ed86d96e2f1f1a7d19eb34340ff676.zip
All plugins updated for element state changes.
Original commit message from CVS: 2005-09-02 Andy Wingo <wingo@pobox.com> * All plugins updated for element state changes.
-rw-r--r--ext/ladspa/gstsignalprocessor.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/ext/ladspa/gstsignalprocessor.c b/ext/ladspa/gstsignalprocessor.c
index 7b79dde2..3c84e795 100644
--- a/ext/ladspa/gstsignalprocessor.c
+++ b/ext/ladspa/gstsignalprocessor.c
@@ -143,7 +143,7 @@ static gboolean gst_signal_processor_src_activate_pull (GstPad * pad,
gboolean active);
static gboolean gst_signal_processor_sink_activate_push (GstPad * pad,
gboolean active);
-static GstElementStateReturn gst_signal_processor_change_state (GstElement *
+static GstStateChangeReturn gst_signal_processor_change_state (GstElement *
element);
static gboolean gst_signal_processor_event (GstPad * pad, GstEvent * event);
@@ -667,38 +667,37 @@ gst_signal_processor_src_activate_pull (GstPad * pad, gboolean active)
return result;
}
-static GstElementStateReturn
-gst_signal_processor_change_state (GstElement * element)
+static GstStateChangeReturn
+gst_signal_processor_change_state (GstElement * element,
+ GstStateChange transition)
{
/* GstSignalProcessor *self;
GstSignalProcessorClass *klass; */
- GstElementState transition;
- GstElementStateReturn result;
+ GstStateChangeReturn result;
/* self = GST_SIGNAL_PROCESSOR (element);
klass = GST_SIGNAL_PROCESSOR_GET_CLASS (self); */
- transition = GST_STATE_TRANSITION (element);
switch (transition) {
- case GST_STATE_NULL_TO_READY:
+ case GST_STATE_CHANGE_NULL_TO_READY:
break;
- case GST_STATE_READY_TO_PAUSED:
+ case GST_STATE_CHANGE_READY_TO_PAUSED:
break;
- case GST_STATE_PAUSED_TO_PLAYING:
+ case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
break;
default:
break;
}
- result = GST_ELEMENT_CLASS (parent_class)->change_state (element);
+ result = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
switch (transition) {
- case GST_STATE_PLAYING_TO_PAUSED:
+ case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
break;
- case GST_STATE_PAUSED_TO_READY:
+ case GST_STATE_CHANGE_PAUSED_TO_READY:
break;
- case GST_STATE_READY_TO_NULL:
+ case GST_STATE_CHANGE_READY_TO_NULL:
/* gst_signal_processor_cleanup (self); */
break;
default: