avaudenc: Use gst_caps_fixate() instead of gst_caps_truncate()

Just truncating might not be enough.
This commit is contained in:
Sebastian Dröge 2016-07-05 20:16:45 +03:00
parent 832b42301d
commit 0bdceaad8a

View file

@ -360,7 +360,7 @@ gst_ffmpegaudenc_set_format (GstAudioEncoder * encoder, GstAudioInfo * info)
gst_caps_unref (icaps);
return FALSE;
}
icaps = gst_caps_truncate (icaps);
icaps = gst_caps_fixate (icaps);
if (!gst_audio_encoder_set_output_format (GST_AUDIO_ENCODER (ffmpegaudenc),
icaps)) {