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/jack/gstjack.c | |
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/jack/gstjack.c')
-rw-r--r-- | ext/jack/gstjack.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/ext/jack/gstjack.c b/ext/jack/gstjack.c index 58678f87..4ea178de 100644 --- a/ext/jack/gstjack.c +++ b/ext/jack/gstjack.c @@ -76,7 +76,8 @@ static GstPadTemplate *gst_jack_src_request_pad_factory (); static GstPadTemplate *gst_jack_sink_request_pad_factory (); static GstPad *gst_jack_request_new_pad (GstElement * element, GstPadTemplate * templ, const gchar * name); -static GstElementStateReturn gst_jack_change_state (GstElement * element); +static GstStateChangeReturn gst_jack_change_state (GstElement * element, + GstStateChange transition); static GstPadLinkReturn gst_jack_link (GstPad * pad, const GstCaps * caps); static void gst_jack_loop (GstElement * element); @@ -360,8 +361,8 @@ gst_jack_request_new_pad (GstElement * element, GstPadTemplate * templ, return pad->pad; } -static GstElementStateReturn -gst_jack_change_state (GstElement * element) +static GstStateChangeReturn +gst_jack_change_state (GstElement * element, GstStateChange transition) { GstJack *this; GList *l = NULL, **pads; @@ -386,7 +387,7 @@ gst_jack_change_state (GstElement * element) this->bin = NULL; g_warning ("jack element %s needs to be contained in a jack bin.", GST_OBJECT_NAME (element)); - return GST_STATE_FAILURE; + return GST_STATE_CHANGE_FAILURE; } /* fixme: verify that all names are unique */ @@ -417,7 +418,7 @@ gst_jack_change_state (GstElement * element) "rate", G_TYPE_INT, (int) this->bin->rate, "buffer-frames", G_TYPE_INT, (gint) this->bin->nframes, NULL); if (gst_pad_try_set_caps (pad->pad, caps) <= 0) - return GST_STATE_FAILURE; + return GST_STATE_CHANGE_FAILURE; l = g_list_next (l); } } @@ -430,9 +431,9 @@ gst_jack_change_state (GstElement * element) JACK_DEBUG ("%s: state change finished", GST_OBJECT_NAME (this)); 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 GstPadLinkReturn |