mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
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
d61133baa4
commit
741afd1f75
1 changed files with 12 additions and 13 deletions
|
@ -143,7 +143,7 @@ static gboolean gst_signal_processor_src_activate_pull (GstPad * pad,
|
||||||
gboolean active);
|
gboolean active);
|
||||||
static gboolean gst_signal_processor_sink_activate_push (GstPad * pad,
|
static gboolean gst_signal_processor_sink_activate_push (GstPad * pad,
|
||||||
gboolean active);
|
gboolean active);
|
||||||
static GstElementStateReturn gst_signal_processor_change_state (GstElement *
|
static GstStateChangeReturn gst_signal_processor_change_state (GstElement *
|
||||||
element);
|
element);
|
||||||
|
|
||||||
static gboolean gst_signal_processor_event (GstPad * pad, GstEvent * event);
|
static gboolean gst_signal_processor_event (GstPad * pad, GstEvent * event);
|
||||||
|
@ -667,38 +667,37 @@ gst_signal_processor_src_activate_pull (GstPad * pad, gboolean active)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstElementStateReturn
|
static GstStateChangeReturn
|
||||||
gst_signal_processor_change_state (GstElement * element)
|
gst_signal_processor_change_state (GstElement * element,
|
||||||
|
GstStateChange transition)
|
||||||
{
|
{
|
||||||
/* GstSignalProcessor *self;
|
/* GstSignalProcessor *self;
|
||||||
GstSignalProcessorClass *klass; */
|
GstSignalProcessorClass *klass; */
|
||||||
GstElementState transition;
|
GstStateChangeReturn result;
|
||||||
GstElementStateReturn result;
|
|
||||||
|
|
||||||
/* self = GST_SIGNAL_PROCESSOR (element);
|
/* self = GST_SIGNAL_PROCESSOR (element);
|
||||||
klass = GST_SIGNAL_PROCESSOR_GET_CLASS (self); */
|
klass = GST_SIGNAL_PROCESSOR_GET_CLASS (self); */
|
||||||
|
|
||||||
transition = GST_STATE_TRANSITION (element);
|
|
||||||
|
|
||||||
switch (transition) {
|
switch (transition) {
|
||||||
case GST_STATE_NULL_TO_READY:
|
case GST_STATE_CHANGE_NULL_TO_READY:
|
||||||
break;
|
break;
|
||||||
case GST_STATE_READY_TO_PAUSED:
|
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||||
break;
|
break;
|
||||||
case GST_STATE_PAUSED_TO_PLAYING:
|
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = GST_ELEMENT_CLASS (parent_class)->change_state (element);
|
result = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
||||||
|
|
||||||
switch (transition) {
|
switch (transition) {
|
||||||
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;
|
||||||
case GST_STATE_READY_TO_NULL:
|
case GST_STATE_CHANGE_READY_TO_NULL:
|
||||||
/* gst_signal_processor_cleanup (self); */
|
/* gst_signal_processor_cleanup (self); */
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue