audioconvert: truncate caps in _fixate
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 10 Nov 2011 14:24:30 +0000 (14:24 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 10 Nov 2011 14:38:09 +0000 (14:38 +0000)
Otherwise the resulting caps may not be fixed.

gst/audioconvert/gstaudioconvert.c

index afe23aa..934c3b4 100644 (file)
@@ -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);
 }