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:
parent
eb9115dbbb
commit
70f2f1ba90
@ -990,6 +990,10 @@ gst_mad_change_state (GstElement *element)
|
|||||||
mad->tempsize = 0;
|
mad->tempsize = 0;
|
||||||
mad->can_seek = FALSE;
|
mad->can_seek = FALSE;
|
||||||
mad->total_samples = 0;
|
mad->total_samples = 0;
|
||||||
|
mad->caps_set = FALSE;
|
||||||
|
mad->vbr_average = 0;
|
||||||
|
mad->frame.header.samplerate = 0;
|
||||||
|
mad->restart = TRUE;
|
||||||
break;
|
break;
|
||||||
case GST_STATE_PAUSED_TO_PLAYING:
|
case GST_STATE_PAUSED_TO_PLAYING:
|
||||||
/* do something to get out of the chain function faster */
|
/* 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_synth_finish (&mad->synth);
|
||||||
mad_frame_finish (&mad->frame);
|
mad_frame_finish (&mad->frame);
|
||||||
mad_stream_finish (&mad->stream);
|
mad_stream_finish (&mad->stream);
|
||||||
mad->vbr_average = 0;
|
|
||||||
mad->frame.header.samplerate = 0;
|
|
||||||
mad->can_seek = FALSE;
|
|
||||||
mad->restart = TRUE;
|
|
||||||
break;
|
break;
|
||||||
case GST_STATE_READY_TO_NULL:
|
case GST_STATE_READY_TO_NULL:
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user