audioresample: truncate in fixation
This commit is contained in:
parent
65aaa66f35
commit
8a9a0bf6da
@ -316,6 +316,7 @@ gst_audio_resample_fixate_caps (GstBaseTransform * base,
|
|||||||
if (G_UNLIKELY (!gst_structure_get_int (s, "rate", &rate)))
|
if (G_UNLIKELY (!gst_structure_get_int (s, "rate", &rate)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
gst_caps_truncate (othercaps);
|
||||||
s = gst_caps_get_structure (othercaps, 0);
|
s = gst_caps_get_structure (othercaps, 0);
|
||||||
gst_structure_fixate_field_nearest_int (s, "rate", rate);
|
gst_structure_fixate_field_nearest_int (s, "rate", rate);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user