diff options
Diffstat (limited to 'libs/gst/base/gstbasetransform.c')
-rw-r--r-- | libs/gst/base/gstbasetransform.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index ec46c8681..dc3d57451 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -113,8 +113,8 @@ static gboolean gst_base_transform_sink_activate_push (GstPad * pad, static gboolean gst_base_transform_get_unit_size (GstBaseTransform * trans, GstCaps * caps, guint * size); -static GstElementStateReturn gst_base_transform_change_state (GstElement * - element); +static GstStateChangeReturn gst_base_transform_change_state (GstElement * + element, GstStateChange transition); static gboolean gst_base_transform_event (GstPad * pad, GstEvent * event); static GstFlowReturn gst_base_transform_getrange (GstPad * pad, guint64 offset, @@ -1048,23 +1048,22 @@ gst_base_transform_src_activate_pull (GstPad * pad, gboolean active) return result; } -static GstElementStateReturn -gst_base_transform_change_state (GstElement * element) +static GstStateChangeReturn +gst_base_transform_change_state (GstElement * element, + GstStateChange transition) { GstBaseTransform *trans; GstBaseTransformClass *bclass; - GstElementState transition; - GstElementStateReturn result; + GstStateChangeReturn result; trans = GST_BASE_TRANSFORM (element); bclass = GST_BASE_TRANSFORM_GET_CLASS (trans); - transition = GST_STATE_TRANSITION (element); switch (transition) { - case GST_STATE_NULL_TO_READY: + case GST_STATE_CHANGE_NULL_TO_READY: break; - case GST_STATE_READY_TO_PAUSED: + case GST_STATE_CHANGE_READY_TO_PAUSED: GST_LOCK (trans); if (GST_PAD_CAPS (trans->sinkpad) && GST_PAD_CAPS (trans->srcpad)) trans->in_place = gst_caps_is_equal (GST_PAD_CAPS (trans->sinkpad), @@ -1077,22 +1076,22 @@ gst_base_transform_change_state (GstElement * element) trans->negotiated = FALSE; GST_UNLOCK (trans); break; - case GST_STATE_PAUSED_TO_PLAYING: + case GST_STATE_CHANGE_PAUSED_TO_PLAYING: break; default: break; } - result = GST_ELEMENT_CLASS (parent_class)->change_state (element); + result = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition); switch (transition) { - 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: if (bclass->stop) result = bclass->stop (trans); break; - case GST_STATE_READY_TO_NULL: + case GST_STATE_CHANGE_READY_TO_NULL: break; default: break; |