Commit 38196e0a authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

avaudenc: Use gst_caps_fixate() instead of gst_caps_truncate()

Just truncating might not be enough.
parent f285cf0f
......@@ -359,7 +359,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)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment