diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2005-09-05 17:20:29 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2005-09-05 17:20:29 +0000 |
commit | 012dfb8b33969b582f9132ac9f95402b3098ff43 (patch) | |
tree | acff4df23e44c9d15abab2b9877c3f72032da286 /ext/dirac | |
parent | 390621f8de27467709897c92e5fec4605d96be75 (diff) | |
download | gst-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/dirac')
-rw-r--r-- | ext/dirac/gstdiracdec.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/ext/dirac/gstdiracdec.cc b/ext/dirac/gstdiracdec.cc index c9f8501a..c883fd5f 100644 --- a/ext/dirac/gstdiracdec.cc +++ b/ext/dirac/gstdiracdec.cc @@ -59,7 +59,8 @@ static void gst_diracdec_init (GstDiracDec * diracdec); static void gst_diracdec_dispose (GObject * object); static void gst_diracdec_chain (GstPad * pad, GstData * data); -static GstElementStateReturn gst_diracdec_change_state (GstElement * element); +static GstStateChangeReturn gst_diracdec_change_state (GstElement * element, + GstStateChange transition); static GstElementClass *parent_class = NULL; @@ -340,17 +341,17 @@ gst_diracdec_chain (GstPad * pad, GstData * _data) } } -static GstElementStateReturn -gst_diracdec_change_state (GstElement * element) +static GstStateChangeReturn +gst_diracdec_change_state (GstElement * element, GstStateChange transition) { GstDiracDec *diracdec = GST_DIRACDEC (element); - switch (GST_STATE_TRANSITION (element)) { - case GST_STATE_NULL_TO_READY: + switch (transition) { + case GST_STATE_CHANGE_NULL_TO_READY: if (!(diracdec->decoder = dirac_decoder_init (0))) - return GST_STATE_FAILURE; + return GST_STATE_CHANGE_FAILURE; break; - case GST_STATE_READY_TO_NULL: + case GST_STATE_CHANGE_READY_TO_NULL: dirac_decoder_close (diracdec->decoder); diracdec->width = diracdec->height = -1; diracdec->fps = 0.; @@ -360,5 +361,5 @@ gst_diracdec_change_state (GstElement * element) break; } - return parent_class->change_state (element); + return parent_class->change_state (element, transition); } |