diff options
author | Andy Wingo <wingo@pobox.com> | 2005-09-02 15:44:50 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2005-09-02 15:44:50 +0000 |
commit | 7ebd7b97d480d4047051c29ad5213791b7620f6c (patch) | |
tree | 7a4cfa3c197d393d6eb23d0fbac8bee97dc6d329 /gst/matroska/matroska-demux.c | |
parent | e6280d445d618272800e7bd39b9e83ba82d8a4bc (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/matroska/matroska-demux.c')
-rw-r--r-- | gst/matroska/matroska-demux.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index a90548f8..2b96aab4 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -77,8 +77,9 @@ static gboolean gst_matroska_demux_handle_src_query (GstPad * pad, GstQueryType type, GstFormat * format, gint64 * value); /* gst internal change state handler */ -static GstElementStateReturn -gst_matroska_demux_change_state (GstElement * element); +static GstStateChangeReturn +gst_matroska_demux_change_state (GstElement * element, + GstStateChange transition); static void gst_matroska_demux_set_clock (GstElement * element, GstClock * clock); @@ -2864,13 +2865,14 @@ gst_matroska_demux_subtitle_caps (GstMatroskaTrackSubtitleContext * return caps; } -static GstElementStateReturn -gst_matroska_demux_change_state (GstElement * element) +static GstStateChangeReturn +gst_matroska_demux_change_state (GstElement * element, + GstStateChange transition) { GstMatroskaDemux *demux = GST_MATROSKA_DEMUX (element); - switch (GST_STATE_TRANSITION (element)) { - case GST_STATE_PAUSED_TO_READY: + switch (transition) { + case GST_STATE_CHANGE_PAUSED_TO_READY: gst_matroska_demux_reset (GST_ELEMENT (demux)); break; default: @@ -2878,9 +2880,10 @@ gst_matroska_demux_change_state (GstElement * element) } if (((GstElementClass *) parent_class)->change_state) - return ((GstElementClass *) parent_class)->change_state (element); + return ((GstElementClass *) parent_class)->change_state (element, + transition); - return GST_STATE_SUCCESS; + return GST_STATE_CHANGE_SUCCESS; } gboolean |