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/xine/xine.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/xine/xine.c')
-rw-r--r-- | ext/xine/xine.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/ext/xine/xine.c b/ext/xine/xine.c index 68aebc28..5225f0cf 100644 --- a/ext/xine/xine.c +++ b/ext/xine/xine.c @@ -25,7 +25,8 @@ GST_BOILERPLATE (GstXine, gst_xine, GstElement, GST_TYPE_ELEMENT) - static GstElementStateReturn gst_xine_change_state (GstElement * element); + static GstStateChangeReturn gst_xine_change_state (GstElement * element, + GstStateChange transition); static xine_ao_driver_t *_xine_create_audio_driver (GstXine * xine); static xine_vo_driver_t *_xine_create_video_driver (GstXine * xine); @@ -54,23 +55,23 @@ gst_xine_init (GstXine * filter, GstXineClass * g_class) { } -static GstElementStateReturn -gst_xine_change_state (GstElement * element) +static GstStateChangeReturn +gst_xine_change_state (GstElement * element, GstStateChange transition) { GstXine *xine = GST_XINE (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: 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: break; - case GST_STATE_READY_TO_NULL: + case GST_STATE_CHANGE_READY_TO_NULL: if (xine->stream != NULL) gst_xine_free_stream (xine); break; @@ -80,7 +81,7 @@ gst_xine_change_state (GstElement * element) } return GST_CALL_PARENT_WITH_DEFAULT (GST_ELEMENT_CLASS, change_state, - (element), GST_STATE_SUCCESS); + (element), GST_STATE_CHANGE_SUCCESS); } static xine_ao_driver_t * |