ext/vorbis/vorbisdec.c: Reset variable so that query and convert fail after going...
authorWim Taymans <wim.taymans@gmail.com>
Fri, 22 Aug 2008 15:54:15 +0000 (15:54 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 22 Aug 2008 15:54:15 +0000 (15:54 +0000)
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.

ChangeLog
ext/vorbis/vorbisdec.c

index 7685854f33a08b8b06218d605c25113a02fe8009..4897d5d8e24915d2644a18282d5b998fbce2f06f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index b709b92ca00e56911afff5e2d6fa590f146f2975..66716c93a2ce8bf5324b6258d14bf97f35e0c9ff 100644 (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);