Commit 0bdceaad 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 832b4230
......@@ -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)) {
......
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