summaryrefslogtreecommitdiff
path: root/ext/dts/gstdtsdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dts/gstdtsdec.c')
-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 fa7fd5d98..cf9943942 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