[0.11] gst-plugins-base: audioresample: truncate in fixation

Wim Taymans wtay at kemper.freedesktop.org
Mon Jan 2 06:59:31 PST 2012


Module: gst-plugins-base
Branch: 0.11
Commit: 8a9a0bf6da80960215b7041e5265ae5c1a4a4d1a
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=8a9a0bf6da80960215b7041e5265ae5c1a4a4d1a

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Mon Jan  2 15:59:09 2012 +0100

audioresample: truncate in fixation

---

 gst/audioresample/gstaudioresample.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c
index 67cc05d..a74acc4 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);
 }



More information about the gstreamer-commits mailing list