mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-09 10:59:39 +00:00
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
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue