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 /ext/cairo/gsttextoverlay.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 'ext/cairo/gsttextoverlay.c')
-rw-r--r-- | ext/cairo/gsttextoverlay.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/ext/cairo/gsttextoverlay.c b/ext/cairo/gsttextoverlay.c index fa5c493c..49241b9b 100644 --- a/ext/cairo/gsttextoverlay.c +++ b/ext/cairo/gsttextoverlay.c @@ -77,8 +77,7 @@ static void gst_textoverlay_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static void gst_textoverlay_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); -static GstElementStateReturn gst_textoverlay_change_state (GstElement * - element); +static GstStateChangeReturn gst_textoverlay_change_state (GstElement * element); static void gst_textoverlay_finalize (GObject * object); @@ -550,25 +549,25 @@ gst_textoverlay_font_init (GstTextOverlay * overlay) overlay->need_render = TRUE; } -static GstElementStateReturn -gst_textoverlay_change_state (GstElement * element) +static GstStateChangeReturn +gst_textoverlay_change_state (GstElement * element, GstStateChange transition) { GstTextOverlay *overlay; overlay = GST_TEXTOVERLAY (element); - switch (GST_STATE_TRANSITION (element)) { - case GST_STATE_PAUSED_TO_PLAYING: + switch (transition) { + case GST_STATE_CHANGE_PAUSED_TO_PLAYING: break; - 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: break; } - parent_class->change_state (element); + parent_class->change_state (element, transition); - return GST_STATE_SUCCESS; + return GST_STATE_CHANGE_SUCCESS; } static void |