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.
This commit is contained in:
parent
6665c3084c
commit
d57162b883
@ -78,8 +78,7 @@ static void gst_textoverlay_set_property (GObject * object,
|
|||||||
guint prop_id, const GValue * value, GParamSpec * pspec);
|
guint prop_id, const GValue * value, GParamSpec * pspec);
|
||||||
static void gst_textoverlay_get_property (GObject * object,
|
static void gst_textoverlay_get_property (GObject * object,
|
||||||
guint prop_id, GValue * value, GParamSpec * pspec);
|
guint prop_id, GValue * value, GParamSpec * pspec);
|
||||||
static GstElementStateReturn gst_textoverlay_change_state (GstElement *
|
static GstStateChangeReturn gst_textoverlay_change_state (GstElement * element);
|
||||||
element);
|
|
||||||
static void gst_textoverlay_finalize (GObject * object);
|
static void gst_textoverlay_finalize (GObject * object);
|
||||||
|
|
||||||
|
|
||||||
@ -606,25 +605,25 @@ gst_textoverlay_loop (GstElement * element)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static GstElementStateReturn
|
static GstStateChangeReturn
|
||||||
gst_textoverlay_change_state (GstElement * element)
|
gst_textoverlay_change_state (GstElement * element, GstStateChange transition)
|
||||||
{
|
{
|
||||||
GstTextOverlay *overlay;
|
GstTextOverlay *overlay;
|
||||||
|
|
||||||
overlay = GST_TEXTOVERLAY (element);
|
overlay = GST_TEXTOVERLAY (element);
|
||||||
|
|
||||||
switch (GST_STATE_TRANSITION (element)) {
|
switch (transition) {
|
||||||
case GST_STATE_PAUSED_TO_PLAYING:
|
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
|
||||||
break;
|
break;
|
||||||
case GST_STATE_PLAYING_TO_PAUSED:
|
case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
|
||||||
break;
|
break;
|
||||||
case GST_STATE_PAUSED_TO_READY:
|
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
parent_class->change_state (element);
|
parent_class->change_state (element, transition);
|
||||||
|
|
||||||
return GST_STATE_SUCCESS;
|
return GST_STATE_CHANGE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user