+2006-03-23 Tim-Philipp Müller <tim at centricular dot net>
+
+ * ext/speex/gstspeexdec.c: (speex_dec_change_state):
+ * gst/interleave/deinterleave.c: (deinterleave_change_state):
+ * gst/interleave/interleave.c: (interleave_change_state):
+ * gst/wavenc/gstwavenc.c: (gst_wavenc_change_state):
+ More state change function fixes.
+
2006-03-23 Wim Taymans <wim@fluendo.com>
* ext/esd/esdsink.c: (gst_esdsink_class_init),
static GstStateChangeReturn
speex_dec_change_state (GstElement * element, GstStateChange transition)
{
+ GstStateChangeReturn ret;
GstSpeexDec *vd = GST_SPEEXDEC (element);
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
- break;
case GST_STATE_CHANGE_READY_TO_PAUSED:
- break;
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
+ default:
break;
+ }
+
+ ret = parent_class->change_state (element, transition);
+ if (ret != GST_STATE_CHANGE_SUCCESS)
+ return ret;
+
+ switch (transition) {
case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
break;
case GST_STATE_CHANGE_PAUSED_TO_READY:
break;
}
- return parent_class->change_state (element, transition);
+ return ret;
}
static GstStateChangeReturn
gst_wavenc_change_state (GstElement * element, GstStateChange transition)
{
+ GstStateChangeReturn ret = GST_STATE_CHANGE_SUCCESS;
GstWavEnc *wavenc = GST_WAVENC (element);
+ ret = parent_class->change_state (element, transition);
+ if (ret != GST_STATE_CHANGE_SUCCESS)
+ return ret;
+
switch (transition) {
case GST_STATE_CHANGE_PAUSED_TO_READY:
wavenc->setup = FALSE;
break;
}
- if (parent_class->change_state) {
- return parent_class->change_state (element, transition);
- }
-
- return GST_STATE_CHANGE_SUCCESS;
+ return ret;
}
static void