mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
avaudenc: Use gst_caps_fixate() instead of gst_caps_truncate()
Just truncating might not be enough.
This commit is contained in:
parent
832b42301d
commit
0bdceaad8a
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue