ext/vorbis/vorbisdec.c: Reset variable so that query and convert fail after going back to

Original commit message from CVS:
* ext/vorbis/vorbisdec.c: (vorbis_dec_change_state):
Reset variable so that query and convert fail after going back to
READY. Fixes #548898.
This commit is contained in:
Wim Taymans 2008-08-22 15:54:15 +00:00
parent aea2a11136
commit 096e77929f
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2008-08-22 Wim Taymans <wim.taymans@collabora.co.uk>
* ext/vorbis/vorbisdec.c: (vorbis_dec_change_state):
Reset variable so that query and convert fail after going back to
READY. Fixes #548898.
2008-08-22 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* ext/vorbis/vorbisenc.c: (gst_vorbis_enc_chain):

View file

@ -1427,6 +1427,7 @@ vorbis_dec_change_state (GstElement * element, GstStateChange transition)
break;
case GST_STATE_CHANGE_PAUSED_TO_READY:
GST_DEBUG_OBJECT (vd, "PAUSED -> READY, clearing vorbis structures");
vd->initialized = FALSE;
vorbis_block_clear (&vd->vb);
vorbis_dsp_clear (&vd->vd);
vorbis_comment_clear (&vd->vc);