Skip to content
Snippets Groups Projects
Commit 0bdceaad authored by Sebastian Dröge's avatar Sebastian Dröge :tea:
Browse files

avaudenc: Use gst_caps_fixate() instead of gst_caps_truncate()

Just truncating might not be enough.
parent 832b4230
No related branches found
No related tags found
Loading
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment