GNOME Bugzilla – Bug 549510
audioresample doesn't negotiate ideal caps
Last modified: 2008-10-28 16:24:45 UTC
If audioresample needs to resample, it should resample to the nearest available rate. In a test with a 192kHz file (simulating what happens with real hardware that supports only these 3 sample rates): gst-launch filesrc location=~/media/testfiles/24bit-192kHz.flac ! decodebin ! audioconvert ! audioresample ! "audio/x-raw-float,rate=(int){44100,48000,96000}" ! fakesink silent=true -v audioresample resamples to 44.1kHz, rather than 96kHz.
2008-10-28 Sebastian Dröge <sebastian.droege@collabora.co.uk> * gst/audioresample/gstaudioresample.c: (gst_audioresample_class_init), (audioresample_fixate_caps): Fixate the rate to the nearest supported rate instead of the first one. Fixes bug #549510.