summaryrefslogtreecommitdiffstats
path: root/gst/oldcore/gstpipefilter.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2005-09-02 15:44:50 +0000
committerAndy Wingo <wingo@pobox.com>2005-09-02 15:44:50 +0000
commit7ebd7b97d480d4047051c29ad5213791b7620f6c (patch)
tree7a4cfa3c197d393d6eb23d0fbac8bee97dc6d329 /gst/oldcore/gstpipefilter.c
parente6280d445d618272800e7bd39b9e83ba82d8a4bc (diff)
All plugins updated for element state changes.
Original commit message from CVS: 2005-09-02 Andy Wingo <wingo@pobox.com> * All plugins updated for element state changes.
Diffstat (limited to 'gst/oldcore/gstpipefilter.c')
-rw-r--r--gst/oldcore/gstpipefilter.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gst/oldcore/gstpipefilter.c b/gst/oldcore/gstpipefilter.c
index 731cc056..c171760f 100644
--- a/gst/oldcore/gstpipefilter.c
+++ b/gst/oldcore/gstpipefilter.c
@@ -86,7 +86,8 @@ static GstData *gst_pipefilter_get (GstPad * pad);
static void gst_pipefilter_chain (GstPad * pad, GstData * _data);
static gboolean gst_pipefilter_handle_event (GstPad * pad, GstEvent * event);
-static GstElementStateReturn gst_pipefilter_change_state (GstElement * element);
+static GstStateChangeReturn gst_pipefilter_change_state (GstElement * element,
+ GstStateChange transition);
static void
gst_pipefilter_base_init (gpointer g_class)
@@ -331,8 +332,8 @@ gst_pipefilter_close_file (GstPipefilter * src)
GST_FLAG_UNSET (src, GST_PIPEFILTER_OPEN);
}
-static GstElementStateReturn
-gst_pipefilter_change_state (GstElement * element)
+static GstStateChangeReturn
+gst_pipefilter_change_state (GstElement * element, GstStateChange transition)
{
g_return_val_if_fail (GST_IS_PIPEFILTER (element), FALSE);
@@ -344,11 +345,11 @@ gst_pipefilter_change_state (GstElement * element)
} else {
if (!GST_FLAG_IS_SET (element, GST_PIPEFILTER_OPEN)) {
if (!gst_pipefilter_open_file (GST_PIPEFILTER (element)))
- return GST_STATE_FAILURE;
+ return GST_STATE_CHANGE_FAILURE;
}
}
if (GST_ELEMENT_CLASS (parent_class)->change_state)
- return GST_ELEMENT_CLASS (parent_class)->change_state (element);
- return GST_STATE_SUCCESS;
+ return GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
+ return GST_STATE_CHANGE_SUCCESS;
}