Merge branch 'v0.18.x'
This commit is contained in:
commit
139122c57f
3
NEWS
3
NEWS
@ -15,7 +15,10 @@ ver 0.19 (not yet released)
|
||||
|
||||
ver 0.18.7 (not yet released)
|
||||
* playlist
|
||||
- pls: fix crash after parser error
|
||||
- soundcloud: fix build failure with libyajl 2.0.1
|
||||
* decoder
|
||||
- faad: fix memory leak
|
||||
* daemon: don't initialize supplementary groups when already running
|
||||
as the configured user
|
||||
|
||||
|
@ -986,7 +986,7 @@ systemctl start mpd.socket</programlisting>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>
|
||||
<varname>default_bute_order</varname>
|
||||
<varname>default_byte_order</varname>
|
||||
<parameter>little_endian|big_endian</parameter>
|
||||
</entry>
|
||||
<entry>
|
||||
|
@ -359,6 +359,7 @@ faad_stream_decode(Decoder &mpd_decoder, InputStream &is)
|
||||
if (!faad_decoder_init(decoder, buffer, audio_format, error)) {
|
||||
LogError(error);
|
||||
NeAACDecClose(decoder);
|
||||
decoder_buffer_free(buffer);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -428,6 +429,7 @@ faad_stream_decode(Decoder &mpd_decoder, InputStream &is)
|
||||
/* cleanup */
|
||||
|
||||
NeAACDecClose(decoder);
|
||||
decoder_buffer_free(buffer);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
@ -67,7 +67,6 @@ pls_parser(GKeyFile *keyfile, std::forward_list<SongPointer> &songs)
|
||||
FormatError(pls_domain, "Invalid PLS entry %s: '%s'",
|
||||
key, error->message);
|
||||
g_error_free(error);
|
||||
g_free(key);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,8 @@ const char *
|
||||
uri_get_suffix(const char *uri)
|
||||
{
|
||||
const char *suffix = strrchr(uri, '.');
|
||||
if (suffix == nullptr)
|
||||
if (suffix == nullptr || suffix == uri ||
|
||||
suffix[-1] == '/' || suffix[-1] == '\\')
|
||||
return nullptr;
|
||||
|
||||
++suffix;
|
||||
|
@ -29,6 +29,10 @@ public:
|
||||
"jpg"));
|
||||
CPPUNIT_ASSERT_EQUAL(0, strcmp(uri_get_suffix("/foo.png/bar.jpg"),
|
||||
"jpg"));
|
||||
CPPUNIT_ASSERT_EQUAL((const char *)nullptr,
|
||||
uri_get_suffix(".jpg"));
|
||||
CPPUNIT_ASSERT_EQUAL((const char *)nullptr,
|
||||
uri_get_suffix("/foo/.jpg"));
|
||||
}
|
||||
|
||||
void TestRemoveAuth() {
|
||||
|
Loading…
Reference in New Issue
Block a user