GNOME Bugzilla – Bug 582420
flacdec unit test broken on PPC
Last modified: 2009-05-13 08:29:44 UTC
The flacdec unit test assumes samples are little endian. This will make the unit test fail on all big endian architectures. Patch will follow in a second.
Created attachment 134537 [details] [review] Fix unit test on big endian machines; fix leaks in decoder and unit test on all machines
commit 0c4b6ee2860e30c40f25bbb5c1c139db1eea69b7 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Wed May 13 09:24:26 2009 +0100 checks: fix flacdec unit tests on big-endian machines and under valgrind Flacdec outputs 16-bit samples, so let's check if the value of the first sample is what we expect rather than just the first byte, which may be different from what we expect depending on the host's endianness. Fixes the flacdec unit tests on PPC. Also fix a bunch of leaks in the unit tests to make valgrind happy. Fixes #582420. commit 8accf2704bba2eae29874de8bb409ea67599500e Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Wed May 13 09:18:07 2009 +0100 flacdec: fix buffer leak gst_buffer_replace() will take its own ref, so we still have to unref the buffer if we don't need it any longer.