vorbisenc: Resend (new, updated) headers when the caps are changing
authorSebastian Dröge <sebastian@centricular.com>
Mon, 27 Feb 2017 17:04:30 +0000 (19:04 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 27 Feb 2017 17:04:30 +0000 (19:04 +0200)
The headers are usually changing together with the caps, and they are
nedeed for correct decoding.

ext/vorbis/gstvorbisenc.c

index 3890fd2..5b90d89 100644 (file)
@@ -306,6 +306,7 @@ gst_vorbis_enc_set_format (GstAudioEncoder * enc, GstAudioInfo * info)
   vorbisenc->frequency = GST_AUDIO_INFO_RATE (info);
 
   /* if re-configured, we were drained and cleared already */
+  vorbisenc->header_sent = FALSE;
   if (!gst_vorbis_enc_setup (vorbisenc))
     return FALSE;