audioresample: truncate in fixation

This commit is contained in:
Wim Taymans 2012-01-02 15:59:09 +01:00
parent 65aaa66f35
commit 8a9a0bf6da

View 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);
}