Commit 86d05e98 authored by Max Kellermann's avatar Max Kellermann

Merge tag 'v0.20.8'

release v0.20.8
parents cdd2d4cc 8d290ad5
...@@ -2,30 +2,35 @@ dist: trusty ...@@ -2,30 +2,35 @@ dist: trusty
language: cpp language: cpp
addons: addons:
apt: apt:
packages: packages:
- libcppunit-dev - libcppunit-dev
- libboost-dev - libboost-dev
os: os:
- linux - linux
- osx
compiler: env:
- gcc global:
- MAKEFLAGS="-j2"
before_install: before_install:
# C++14 # C++14
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - test "$TRAVIS_OS_NAME" != "linux" || sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq - test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get update -qq
- test "$TRAVIS_OS_NAME" != "osx" || brew update
install: install:
# C++14 # C++14
- sudo apt-get install -qq g++-5 - test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get install -qq g++-5
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90 - test "$TRAVIS_OS_NAME" != "osx" || brew install cppunit
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 90
script: script:
- ./autogen.sh - OPTIONS="--enable-test"
- ./configure --enable-test - test "$TRAVIS_OS_NAME" != "linux" || export CC=gcc-5 CXX=g++-5
- make - test "$TRAVIS_OS_NAME" != "osx" || OPTIONS="$OPTIONS --enable-osx"
- make check - ./autogen.sh
- ./configure --disable-silent-rules --disable-dependency-tracking $OPTIONS
- make
- make check
...@@ -9,9 +9,11 @@ ver 0.21 (not yet released) ...@@ -9,9 +9,11 @@ ver 0.21 (not yet released)
* output * output
- alsa: non-blocking mode - alsa: non-blocking mode
ver 0.20.8 (not yet released) ver 0.20.8 (2017/05/19)
* output * output
- osx: fix build failure due to missing "noexcept" - osx: fix build failure due to missing "noexcept"
* playlist
- m3u: support MIME type `audio/mpegurl`
* fix build failure with GCC 4.x * fix build failure with GCC 4.x
ver 0.20.7 (2017/05/15) ver 0.20.7 (2017/05/15)
......
...@@ -146,6 +146,7 @@ static const char *const extm3u_suffixes[] = { ...@@ -146,6 +146,7 @@ static const char *const extm3u_suffixes[] = {
static const char *const extm3u_mime_types[] = { static const char *const extm3u_mime_types[] = {
"audio/x-mpegurl", "audio/x-mpegurl",
"audio/mpegurl",
nullptr nullptr
}; };
......
...@@ -66,6 +66,7 @@ static const char *const m3u_suffixes[] = { ...@@ -66,6 +66,7 @@ static const char *const m3u_suffixes[] = {
static const char *const m3u_mime_types[] = { static const char *const m3u_mime_types[] = {
"audio/x-mpegurl", "audio/x-mpegurl",
"audio/mpegurl",
nullptr nullptr
}; };
......
...@@ -49,9 +49,9 @@ CPPUNIT_TEST_SUITE_REGISTRATION(ByteReverseTest); ...@@ -49,9 +49,9 @@ CPPUNIT_TEST_SUITE_REGISTRATION(ByteReverseTest);
void void
ByteReverseTest::TestByteReverse2() ByteReverseTest::TestByteReverse2()
{ {
static const char src[] alignas(uint16_t) = "123456"; alignas(uint16_t) static const char src[] = "123456";
static const char result[] = "214365"; static const char result[] = "214365";
static uint8_t dest[ARRAY_SIZE(src)] alignas(uint16_t); alignas(uint16_t)static uint8_t dest[ARRAY_SIZE(src)];
reverse_bytes(dest, (const uint8_t *)src, reverse_bytes(dest, (const uint8_t *)src,
(const uint8_t *)(src + ARRAY_SIZE(src) - 1), 2); (const uint8_t *)(src + ARRAY_SIZE(src) - 1), 2);
...@@ -73,9 +73,9 @@ ByteReverseTest::TestByteReverse3() ...@@ -73,9 +73,9 @@ ByteReverseTest::TestByteReverse3()
void void
ByteReverseTest::TestByteReverse4() ByteReverseTest::TestByteReverse4()
{ {
static const char src[] alignas(uint32_t) = "12345678"; alignas(uint32_t) static const char src[] = "12345678";
static const char result[] = "43218765"; static const char result[] = "43218765";
static uint8_t dest[ARRAY_SIZE(src)] alignas(uint32_t); alignas(uint32_t) static uint8_t dest[ARRAY_SIZE(src)];
reverse_bytes(dest, (const uint8_t *)src, reverse_bytes(dest, (const uint8_t *)src,
(const uint8_t *)(src + ARRAY_SIZE(src) - 1), 4); (const uint8_t *)(src + ARRAY_SIZE(src) - 1), 4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment