From 8a9a0bf6da80960215b7041e5265ae5c1a4a4d1a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 2 Jan 2012 15:59:09 +0100 Subject: [PATCH] audioresample: truncate in fixation --- gst/audioresample/gstaudioresample.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c index 67cc05d697..a74acc436e 100644 --- a/gst/audioresample/gstaudioresample.c +++ b/gst/audioresample/gstaudioresample.c @@ -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); }