Make sure renegotiation happens after going to READY

Original commit message from CVS:
Make sure renegotiation happens after going to READY
This commit is contained in:
Wim Taymans 2002-09-02 18:13:26 +00:00
parent eb9115dbbb
commit 70f2f1ba90

View file

@ -990,6 +990,10 @@ gst_mad_change_state (GstElement *element)
mad->tempsize = 0;
mad->can_seek = FALSE;
mad->total_samples = 0;
mad->caps_set = FALSE;
mad->vbr_average = 0;
mad->frame.header.samplerate = 0;
mad->restart = TRUE;
break;
case GST_STATE_PAUSED_TO_PLAYING:
/* do something to get out of the chain function faster */
@ -1000,10 +1004,6 @@ gst_mad_change_state (GstElement *element)
mad_synth_finish (&mad->synth);
mad_frame_finish (&mad->frame);
mad_stream_finish (&mad->stream);
mad->vbr_average = 0;
mad->frame.header.samplerate = 0;
mad->can_seek = FALSE;
mad->restart = TRUE;
break;
case GST_STATE_READY_TO_NULL:
break;