diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2005-09-05 15:10:18 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2005-09-05 15:10:18 +0000 |
commit | 390621f8de27467709897c92e5fec4605d96be75 (patch) | |
tree | 03826049036c9d8683a82c9941279d85a892ce2d /gst/qtdemux | |
parent | 6974101779753e623b099966df51dbc1e3729302 (diff) | |
download | gst-plugins-bad-390621f8de27467709897c92e5fec4605d96be75.tar.gz gst-plugins-bad-390621f8de27467709897c92e5fec4605d96be75.tar.bz2 gst-plugins-bad-390621f8de27467709897c92e5fec4605d96be75.zip |
cleaning up bad
Original commit message from CVS:
cleaning up bad
Diffstat (limited to 'gst/qtdemux')
-rw-r--r-- | gst/qtdemux/qtdemux.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 3d09ef8c..d31505b3 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -153,7 +153,8 @@ static GstElementClass *parent_class = NULL; static void gst_qtdemux_class_init (GstQTDemuxClass * klass); static void gst_qtdemux_base_init (GstQTDemuxClass * klass); static void gst_qtdemux_init (GstQTDemux * quicktime_demux); -static GstElementStateReturn gst_qtdemux_change_state (GstElement * element); +static GstStateChangeReturn gst_qtdemux_change_state (GstElement * element, + GstStateChange transition); static void gst_qtdemux_loop_header (GstPad * pad); static gboolean qtdemux_sink_activate (GstPad * sinkpad); static gboolean qtdemux_sink_activate_pull (GstPad * sinkpad, gboolean active); @@ -463,13 +464,13 @@ gst_qtdemux_handle_sink_event (GstQTDemux * qtdemux) } #endif -static GstElementStateReturn -gst_qtdemux_change_state (GstElement * element) +static GstStateChangeReturn +gst_qtdemux_change_state (GstElement * element, GstStateChange transition) { GstQTDemux *qtdemux = GST_QTDEMUX (element); - switch (GST_STATE_TRANSITION (element)) { - case GST_STATE_PAUSED_TO_READY:{ + switch (transition) { + case GST_STATE_CHANGE_PAUSED_TO_READY:{ gint n; qtdemux->state = QTDEMUX_STATE_HEADER; @@ -489,7 +490,7 @@ gst_qtdemux_change_state (GstElement * element) break; } - return GST_ELEMENT_CLASS (parent_class)->change_state (element); + return GST_ELEMENT_CLASS (parent_class)->change_state (element, transition); } static void |