diff options
author | Andy Wingo <wingo@pobox.com> | 2005-09-02 15:44:50 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2005-09-02 15:44:50 +0000 |
commit | 7ebd7b97d480d4047051c29ad5213791b7620f6c (patch) | |
tree | 7a4cfa3c197d393d6eb23d0fbac8bee97dc6d329 /gst/rtp/gstrtpmpadepay.c | |
parent | e6280d445d618272800e7bd39b9e83ba82d8a4bc (diff) |
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.
Diffstat (limited to 'gst/rtp/gstrtpmpadepay.c')
-rw-r--r-- | gst/rtp/gstrtpmpadepay.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gst/rtp/gstrtpmpadepay.c b/gst/rtp/gstrtpmpadepay.c index 970aed96..d969100c 100644 --- a/gst/rtp/gstrtpmpadepay.c +++ b/gst/rtp/gstrtpmpadepay.c @@ -68,7 +68,8 @@ static void gst_rtpmpadec_set_property (GObject * object, guint prop_id, static void gst_rtpmpadec_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); -static GstElementStateReturn gst_rtpmpadec_change_state (GstElement * element); +static GstStateChangeReturn gst_rtpmpadec_change_state (GstElement * element, + GstStateChange transition); static GstElementClass *parent_class = NULL; @@ -236,27 +237,25 @@ gst_rtpmpadec_get_property (GObject * object, guint prop_id, GValue * value, } } -static GstElementStateReturn -gst_rtpmpadec_change_state (GstElement * element) +static GstStateChangeReturn +gst_rtpmpadec_change_state (GstElement * element, GstStateChange transition) { GstRtpMPADec *rtpmpadec; - gint transition; - GstElementStateReturn ret; + GstStateChangeReturn ret; rtpmpadec = GST_RTP_MPA_DEC (element); - transition = GST_STATE_TRANSITION (element); switch (transition) { - case GST_STATE_NULL_TO_READY: + case GST_STATE_CHANGE_NULL_TO_READY: break; default: break; } - ret = GST_ELEMENT_CLASS (parent_class)->change_state (element); + ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition); switch (transition) { - case GST_STATE_READY_TO_NULL: + case GST_STATE_CHANGE_READY_TO_NULL: break; default: break; |