From 7ebd7b97d480d4047051c29ad5213791b7620f6c Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 2 Sep 2005 15:44:50 +0000 Subject: All plugins updated for element state changes. Original commit message from CVS: 2005-09-02 Andy Wingo * All plugins updated for element state changes. --- gst/flx/gstflxdec.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'gst/flx') diff --git a/gst/flx/gstflxdec.c b/gst/flx/gstflxdec.c index a0a6c282..e0663814 100644 --- a/gst/flx/gstflxdec.c +++ b/gst/flx/gstflxdec.c @@ -72,7 +72,8 @@ static void gst_flxdec_init (GstFlxDec * flxdec); static void gst_flxdec_loop (GstElement * element); -static GstElementStateReturn gst_flxdec_change_state (GstElement * element); +static GstStateChangeReturn gst_flxdec_change_state (GstElement * element, + GstStateChange transition); static void gst_flxdec_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); @@ -574,38 +575,38 @@ gst_flxdec_loop (GstElement * element) } } -static GstElementStateReturn -gst_flxdec_change_state (GstElement * element) +static GstStateChangeReturn +gst_flxdec_change_state (GstElement * element, GstStateChange transition) { GstFlxDec *flxdec; flxdec = GST_FLXDEC (element); - switch (GST_STATE_TRANSITION (element)) { - case GST_STATE_NULL_TO_READY: + switch (transition) { + case GST_STATE_CHANGE_NULL_TO_READY: break; - case GST_STATE_READY_TO_PAUSED: + case GST_STATE_CHANGE_READY_TO_PAUSED: flxdec->bs = gst_bytestream_new (flxdec->sinkpad); flxdec->state = GST_FLXDEC_READ_HEADER; break; - case GST_STATE_PAUSED_TO_PLAYING: + case GST_STATE_CHANGE_PAUSED_TO_PLAYING: break; - 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: gst_buffer_unref (flxdec->frame); flxdec->frame = NULL; gst_buffer_unref (flxdec->delta); flxdec->delta = NULL; gst_bytestream_destroy (flxdec->bs); break; - case GST_STATE_READY_TO_NULL: + case GST_STATE_CHANGE_READY_TO_NULL: break; } - parent_class->change_state (element); + parent_class->change_state (element, transition); - return GST_STATE_SUCCESS; + return GST_STATE_CHANGE_SUCCESS; } static void -- cgit