Clear some more status variables
authorWim Taymans <wim.taymans@gmail.com>
Sat, 7 Dec 2002 14:32:21 +0000 (14:32 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sat, 7 Dec 2002 14:32:21 +0000 (14:32 +0000)
Original commit message from CVS:
Clear some more status variables

common
ext/mad/gstmad.c

diff --git a/common b/common
index c73793f..9d56428 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit c73793f7022cbc8ffd39f9c0b0587078f47c0b06
+Subproject commit 9d5642850b94f5bc21d565f8c900a0606fbb518f
index 06dcaba..05db5b5 100644 (file)
@@ -1217,6 +1217,11 @@ gst_mad_change_state (GstElement *element)
       mad->rate = 0;
       mad->channels = 0;
       mad->vbr_average = 0;
+      mad->base_time = 0;
+      mad->framestamp = 0;
+      mad->new_header = TRUE;
+      mad->framecount = 0;
+      mad->vbr_rate = 0;
       mad->frame.header.samplerate = 0;
       if (mad->ignore_crc) options |= MAD_OPTION_IGNORECRC;
       if (mad->half) options |= MAD_OPTION_HALFSAMPLERATE;