mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
[MOVED FROM BAD 20/68] Fix up all the state change functions.
Original commit message from CVS: Fix up all the state change functions.
This commit is contained in:
parent
97d8584305
commit
7aeaaea834
1 changed files with 9 additions and 8 deletions
|
@ -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)
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue