summaryrefslogtreecommitdiff
path: root/sys/vcd
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2005-09-05 17:20:29 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2005-09-05 17:20:29 +0000
commit012dfb8b33969b582f9132ac9f95402b3098ff43 (patch)
treeacff4df23e44c9d15abab2b9877c3f72032da286 /sys/vcd
parent390621f8de27467709897c92e5fec4605d96be75 (diff)
Fix up all the state change functions.
Original commit message from CVS: Fix up all the state change functions.
Diffstat (limited to 'sys/vcd')
-rw-r--r--sys/vcd/vcdsrc.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/sys/vcd/vcdsrc.c b/sys/vcd/vcdsrc.c
index 60db1bc14..a6f06b884 100644
--- a/sys/vcd/vcdsrc.c
+++ b/sys/vcd/vcdsrc.c
@@ -78,7 +78,8 @@ static gboolean gst_vcdsrc_srcpad_query (GstPad * pad, GstQueryType type,
GstFormat * format, gint64 * value);
static GstData *gst_vcdsrc_get (GstPad * pad);
-static GstElementStateReturn gst_vcdsrc_change_state (GstElement * element);
+static GstStateChangeReturn gst_vcdsrc_change_state (GstElement * element,
+ GstStateChange transition);
static inline guint64 gst_vcdsrc_msf (GstVCDSrc * vcdsrc, gint track);
static void gst_vcdsrc_recalculate (GstVCDSrc * vcdsrc);
@@ -544,33 +545,33 @@ gst_vcdsrc_close_file (GstVCDSrc * src)
GST_FLAG_UNSET (src, VCDSRC_OPEN);
}
-static GstElementStateReturn
-gst_vcdsrc_change_state (GstElement * element)
+static GstStateChangeReturn
+gst_vcdsrc_change_state (GstElement * element, GstStateChange transition)
{
GstVCDSrc *vcdsrc = GST_VCDSRC (element);
- switch (GST_STATE_TRANSITION (element)) {
- case GST_STATE_READY_TO_NULL:
+ switch (transition) {
+ case GST_STATE_CHANGE_READY_TO_NULL:
if (GST_FLAG_IS_SET (element, VCDSRC_OPEN))
gst_vcdsrc_close_file (vcdsrc);
break;
- case GST_STATE_PAUSED_TO_READY:
+ case GST_STATE_CHANGE_PAUSED_TO_READY:
vcdsrc->curoffset = 0;
vcdsrc->discont = vcdsrc->flush = FALSE;
break;
- case GST_STATE_NULL_TO_READY:
+ case GST_STATE_CHANGE_NULL_TO_READY:
if (!GST_FLAG_IS_SET (element, VCDSRC_OPEN))
if (!gst_vcdsrc_open_file (vcdsrc))
- return GST_STATE_FAILURE;
+ return GST_STATE_CHANGE_FAILURE;
break;
default:
break;
}
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 inline guint64