Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
139122c5
Commit
139122c5
authored
Jan 08, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v0.18.x'
parents
959d7ca9
fdd76b34
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
3 deletions
+12
-3
NEWS
NEWS
+3
-0
user.xml
doc/user.xml
+1
-1
FaadDecoderPlugin.cxx
src/decoder/FaadDecoderPlugin.cxx
+2
-0
PlsPlaylistPlugin.cxx
src/playlist/PlsPlaylistPlugin.cxx
+0
-1
UriUtil.cxx
src/util/UriUtil.cxx
+2
-1
test_util.cxx
test/test_util.cxx
+4
-0
No files found.
NEWS
View file @
139122c5
...
...
@@ -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
...
...
doc/user.xml
View file @
139122c5
...
...
@@ -986,7 +986,7 @@ systemctl start mpd.socket</programlisting>
<tbody>
<row>
<entry>
<varname>
default_b
u
te_order
</varname>
<varname>
default_b
y
te_order
</varname>
<parameter>
little_endian|big_endian
</parameter>
</entry>
<entry>
...
...
src/decoder/FaadDecoderPlugin.cxx
View file @
139122c5
...
...
@@ -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
...
...
src/playlist/PlsPlaylistPlugin.cxx
View file @
139122c5
...
...
@@ -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
;
}
...
...
src/util/UriUtil.cxx
View file @
139122c5
...
...
@@ -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
;
...
...
test/test_util.cxx
View file @
139122c5
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment