mpg123: fix handling of sample rate change during playback
authorJason Litzinger <jlitzinger@control4.com>
Wed, 15 Jul 2015 16:44:02 +0000 (10:44 -0600)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 17 Aug 2015 10:33:57 +0000 (11:33 +0100)
If the sample rate of the media changes, the resulting flush will
clear the has_next_audioinfo flag, and the caps won't be sent
downstream.

https://bugzilla.gnome.org/show_bug.cgi?id=752431

ext/mpg123/gstmpg123audiodec.c

index 46f6db9..5a7faa0 100644 (file)
@@ -611,7 +611,6 @@ gst_mpg123_audio_dec_flush (GstAudioDecoder * dec, gboolean hard)
     mpg123_decoder->handle = NULL;
   }
 
-  mpg123_decoder->has_next_audioinfo = FALSE;
 
   /* opening/closing feeds do not affect the format defined by the
    * mpg123_format() call that was made in gst_mpg123_audio_dec_set_format(),