audioresample: truncate in fixation
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 2 Jan 2012 14:59:09 +0000 (15:59 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 2 Jan 2012 14:59:09 +0000 (15:59 +0100)
gst/audioresample/gstaudioresample.c

index 67cc05d..a74acc4 100644 (file)
@@ -316,6 +316,7 @@ gst_audio_resample_fixate_caps (GstBaseTransform * base,
   if (G_UNLIKELY (!gst_structure_get_int (s, "rate", &rate)))
     return;
 
+  gst_caps_truncate (othercaps);
   s = gst_caps_get_structure (othercaps, 0);
   gst_structure_fixate_field_nearest_int (s, "rate", rate);
 }