mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
audioresample: truncate in fixation
This commit is contained in:
parent
65aaa66f35
commit
8a9a0bf6da
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue