Clear some more status variables

Original commit message from CVS:
Clear some more status variables
This commit is contained in:
Wim Taymans 2002-12-07 14:32:21 +00:00
parent 311621cac4
commit b4ee2a7763
2 changed files with 6 additions and 1 deletions

2
common

@ -1 +1 @@
Subproject commit c73793f7022cbc8ffd39f9c0b0587078f47c0b06
Subproject commit 9d5642850b94f5bc21d565f8c900a0606fbb518f

View 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;