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
3f754fd3
Commit
3f754fd3
authored
Sep 04, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v0.20.x'
parents
91438b65
bc8dd572
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
4 deletions
+29
-4
NEWS
NEWS
+4
-0
protocol.xml
doc/protocol.xml
+3
-1
CurlStorage.cxx
src/storage/plugins/CurlStorage.cxx
+17
-3
build.py
win32/build.py
+5
-0
No files found.
NEWS
View file @
3f754fd3
...
...
@@ -9,6 +9,10 @@ ver 0.21 (not yet released)
* output
- alsa: non-blocking mode
ver 0.20.11 (not yet released)
* storage
- curl: support Content-Type application/xml
ver 0.20.10 (2017/08/24)
* decoder
- ffmpeg: support MusicBrainz ID3v2 tags
...
...
doc/protocol.xml
View file @
3f754fd3
...
...
@@ -444,7 +444,9 @@
<listitem>
<para>
<varname>
volume
</varname>
:
<returnvalue>
0-100
</returnvalue>
<returnvalue>
0-100
</returnvalue>
or
<returnvalue>
-1
</returnvalue>
if the volume cannot
be determined
</para>
</listitem>
<listitem>
...
...
src/storage/plugins/CurlStorage.cxx
View file @
3f754fd3
...
...
@@ -210,6 +210,22 @@ ParseU64(const char *s, size_t length)
return
ParseU64
(
std
::
string
(
s
,
length
).
c_str
());
}
gcc_pure
static
bool
IsXmlContentType
(
const
char
*
content_type
)
noexcept
{
return
StringStartsWith
(
content_type
,
"text/xml"
)
||
StringStartsWith
(
content_type
,
"application/xml"
);
}
gcc_pure
static
bool
IsXmlContentType
(
const
std
::
multimap
<
std
::
string
,
std
::
string
>
&
headers
)
noexcept
{
auto
i
=
headers
.
find
(
"content-type"
);
return
i
!=
headers
.
end
()
&&
IsXmlContentType
(
i
->
second
.
c_str
());
}
/**
* A WebDAV PROPFIND request. Each "response" element will be passed
* to OnDavResponse() (to be implemented by a derived class).
...
...
@@ -271,9 +287,7 @@ private:
throw
FormatRuntimeError
(
"Status %d from WebDAV server; expected
\"
207 Multi-Status
\"
"
,
status
);
auto
i
=
headers
.
find
(
"content-type"
);
if
(
i
==
headers
.
end
()
||
strncmp
(
i
->
second
.
c_str
(),
"text/xml"
,
8
)
!=
0
)
if
(
!
IsXmlContentType
(
headers
))
throw
std
::
runtime_error
(
"Unexpected Content-Type from WebDAV server"
);
}
...
...
win32/build.py
View file @
3f754fd3
...
...
@@ -51,6 +51,11 @@ class CrossGccToolchain:
self
.
strip
=
os
.
path
.
join
(
toolchain_bin
,
arch
+
'-strip'
)
common_flags
=
''
if
not
x64
:
# enable SSE support which is required for LAME
common_flags
+=
' -march=pentium3'
self
.
cflags
=
'-O2 -g '
+
common_flags
self
.
cxxflags
=
'-O2 -g '
+
common_flags
self
.
cppflags
=
'-isystem '
+
os
.
path
.
join
(
install_prefix
,
'include'
)
...
...
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