mpg123: still reset pending audio info on hard flush
authorTim-Philipp Müller <tim@centricular.com>
Mon, 17 Aug 2015 10:50:28 +0000 (11:50 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 17 Aug 2015 10:50:28 +0000 (11:50 +0100)
Follow-up to previous commit.

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

ext/mpg123/gstmpg123audiodec.c

index 5a7faa0..aa8598c 100644 (file)
@@ -611,6 +611,8 @@ gst_mpg123_audio_dec_flush (GstAudioDecoder * dec, gboolean hard)
     mpg123_decoder->handle = NULL;
   }
 
+  if (hard)
+    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(),