From 0bdceaad8a7b43a8b654706774d139aafe9a4579 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 5 Jul 2016 20:16:45 +0300 Subject: [PATCH] avaudenc: Use gst_caps_fixate() instead of gst_caps_truncate() Just truncating might not be enough. --- ext/libav/gstavaudenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/libav/gstavaudenc.c b/ext/libav/gstavaudenc.c index 1edbc90..0500a33 100644 --- a/ext/libav/gstavaudenc.c +++ b/ext/libav/gstavaudenc.c @@ -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)) { -- 2.7.4