vorbisenc: Resend (new, updated) headers when the caps are changing

The headers are usually changing together with the caps, and they are
nedeed for correct decoding.
This commit is contained in:
Sebastian Dröge 2017-02-27 19:04:30 +02:00
parent 14f04c3b69
commit bb051c14b3

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