From 7ca4b51b0149ea6463fd130c30288d061f199e0b Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Thu, 10 Nov 2011 14:24:30 +0000 Subject: [PATCH] audioconvert: truncate caps in _fixate Otherwise the resulting caps may not be fixed. --- gst/audioconvert/gstaudioconvert.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c index afe23aaa29..934c3b48d3 100644 --- a/gst/audioconvert/gstaudioconvert.c +++ b/gst/audioconvert/gstaudioconvert.c @@ -548,6 +548,8 @@ gst_audio_convert_fixate_caps (GstBaseTransform * base, gst_structure_fixate_field_nearest_int (outs, "rate", rate); } } + + gst_caps_truncate (othercaps); GST_DEBUG_OBJECT (base, "fixated othercaps to %" GST_PTR_FORMAT, othercaps); }