summaryrefslogtreecommitdiffstats
path: root/ext/dts
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2005-09-05 17:20:29 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2005-09-05 17:20:29 +0000
commit012dfb8b33969b582f9132ac9f95402b3098ff43 (patch)
treeacff4df23e44c9d15abab2b9877c3f72032da286 /ext/dts
parent390621f8de27467709897c92e5fec4605d96be75 (diff)
downloadgst-plugins-bad-012dfb8b33969b582f9132ac9f95402b3098ff43.tar.gz
gst-plugins-bad-012dfb8b33969b582f9132ac9f95402b3098ff43.tar.bz2
gst-plugins-bad-012dfb8b33969b582f9132ac9f95402b3098ff43.zip
Fix up all the state change functions.
Original commit message from CVS: Fix up all the state change functions.
Diffstat (limited to 'ext/dts')
-rw-r--r--ext/dts/gstdtsdec.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/ext/dts/gstdtsdec.c b/ext/dts/gstdtsdec.c
index fa7fd5d9..cf994394 100644
--- a/ext/dts/gstdtsdec.c
+++ b/ext/dts/gstdtsdec.c
@@ -85,7 +85,8 @@ static void gst_dtsdec_class_init (GstDtsDecClass * klass);
static void gst_dtsdec_init (GstDtsDec * dtsdec);
static void gst_dtsdec_chain (GstPad * pad, GstData * data);
-static GstElementStateReturn gst_dtsdec_change_state (GstElement * element);
+static GstStateChangeReturn gst_dtsdec_change_state (GstElement * element,
+ GstStateChange transition);
static void gst_dtsdec_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
@@ -514,13 +515,13 @@ gst_dtsdec_chain (GstPad * pad, GstData * _data)
gst_buffer_unref (buf);
}
-static GstElementStateReturn
-gst_dtsdec_change_state (GstElement * element)
+static GstStateChangeReturn
+gst_dtsdec_change_state (GstElement * element, GstStateChange transition)
{
GstDtsDec *dts = GST_DTSDEC (element);
- switch (GST_STATE_TRANSITION (element)) {
- case GST_STATE_NULL_TO_READY:{
+ switch (transition) {
+ case GST_STATE_CHANGE_NULL_TO_READY:{
GstCPUFlags cpuflags;
uint32_t mm_accel = 0;
@@ -535,7 +536,7 @@ gst_dtsdec_change_state (GstElement * element)
dts->state = dts_init (mm_accel);
break;
}
- case GST_STATE_READY_TO_PAUSED:
+ case GST_STATE_CHANGE_READY_TO_PAUSED:
dts->samples = dts_samples (dts->state);
dts->bit_rate = -1;
dts->sample_rate = -1;
@@ -547,10 +548,10 @@ gst_dtsdec_change_state (GstElement * element)
dts->bias = 0;
dts->current_ts = 0;
break;
- case GST_STATE_PAUSED_TO_READY:
+ case GST_STATE_CHANGE_PAUSED_TO_READY:
dts->samples = NULL;
break;
- case GST_STATE_READY_TO_NULL:
+ case GST_STATE_CHANGE_READY_TO_NULL:
dts_free (dts->state);
dts->state = NULL;
break;
@@ -559,9 +560,9 @@ gst_dtsdec_change_state (GstElement * element)
}
if (GST_ELEMENT_CLASS (parent_class)->change_state)
- return GST_ELEMENT_CLASS (parent_class)->change_state (element);
+ return GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
- return GST_STATE_SUCCESS;
+ return GST_STATE_CHANGE_SUCCESS;
}
static void