Commit 7aeaaea8 authored by Jan Schmidt's avatar Jan Schmidt Committed by Wim Taymans

[MOVED FROM BAD 20/68] Fix up all the state change functions.

Original commit message from CVS:
Fix up all the state change functions.
parent 97d85843
...@@ -91,7 +91,8 @@ static void gst_colorspace_get_property (GObject * object, guint prop_id, ...@@ -91,7 +91,8 @@ static void gst_colorspace_get_property (GObject * object, guint prop_id,
static GstPadLinkReturn static GstPadLinkReturn
gst_colorspace_link (GstPad * pad, const GstCaps * caps); gst_colorspace_link (GstPad * pad, const GstCaps * caps);
static void gst_colorspace_chain (GstPad * pad, GstData * _data); static void gst_colorspace_chain (GstPad * pad, GstData * _data);
static GstElementStateReturn gst_colorspace_change_state (GstElement * element); static GstStateChangeReturn gst_colorspace_change_state (GstElement * element,
GstStateChange transition);
static GstElementClass *parent_class = NULL; static GstElementClass *parent_class = NULL;
...@@ -563,23 +564,23 @@ gst_colorspace_chain (GstPad * pad, GstData * _data) ...@@ -563,23 +564,23 @@ gst_colorspace_chain (GstPad * pad, GstData * _data)
gst_pad_push (space->srcpad, GST_DATA (outbuf)); gst_pad_push (space->srcpad, GST_DATA (outbuf));
} }
static GstElementStateReturn static GstStateChangeReturn
gst_colorspace_change_state (GstElement * element) gst_colorspace_change_state (GstElement * element, GstStateChange transition)
{ {
GstColorspace *space; GstColorspace *space;
space = GST_COLORSPACE (element); space = GST_COLORSPACE (element);
switch (GST_STATE_TRANSITION (element)) { switch (transition) {
case GST_STATE_PAUSED_TO_PLAYING: case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
break; break;
case GST_STATE_PLAYING_TO_PAUSED: case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
break; break;
case GST_STATE_PAUSED_TO_READY: case GST_STATE_CHANGE_PAUSED_TO_READY:
break; break;
} }
return parent_class->change_state (element); return parent_class->change_state (element, transition);
} }
static void static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment