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
b7dc3fae
Commit
b7dc3fae
authored
Mar 15, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v0.20.x'
parents
d84cd500
a2340c31
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
50 additions
and
14 deletions
+50
-14
AUTHORS
AUTHORS
+5
-0
NEWS
NEWS
+2
-0
configure.ac
configure.ac
+1
-1
user.xml
doc/user.xml
+5
-2
libs.py
python/build/libs.py
+2
-2
ThreadInputStream.cxx
src/input/ThreadInputStream.cxx
+6
-2
ThreadInputStream.hxx
src/input/ThreadInputStream.hxx
+18
-1
MmsInputPlugin.cxx
src/input/plugins/MmsInputPlugin.cxx
+4
-0
PcmDop.cxx
src/pcm/PcmDop.cxx
+7
-6
No files found.
AUTHORS
View file @
b7dc3fae
...
...
@@ -31,3 +31,8 @@ The following people have contributed code to MPD:
Jean-Francois Dockes <jf@dockes.org>
Yue Wang <yuleopen@gmail.com>
Matthew Leon Grinshpun <ml@matthewleon.com>
Dimitris Papastamos <sin@2f30.org>
Florian Schlichting <fsfs@debian.org>
François Revol <revol@free.fr>
Jacob Vosmaer <contact@jacobvosmaer.nl>
Thomas Guillem <thomas@gllm.fr>
NEWS
View file @
b7dc3fae
...
...
@@ -34,6 +34,8 @@ ver 0.21 (not yet released)
ver 0.20.19 (not yet released)
* protocol
- validate absolute seek time, reject negative values
* input
- mms: fix lockup bug and a crash bug
* macOS: fix crash bug
ver 0.20.18 (2018/02/24)
...
...
configure.ac
View file @
b7dc3fae
...
...
@@ -465,7 +465,7 @@ dnl ---------------------------------------------------------------------------
dnl Mandatory Libraries
dnl ---------------------------------------------------------------------------
AX_BOOST_BASE([1.
46
],, [AC_MSG_ERROR([Boost not found])])
AX_BOOST_BASE([1.
54
],, [AC_MSG_ERROR([Boost not found])])
AC_ARG_ENABLE(icu,
AS_HELP_STRING([--enable-icu],
...
...
doc/user.xml
View file @
b7dc3fae
...
...
@@ -79,7 +79,10 @@
<para>
If you need to tweak the configuration, you can create a file
called
<filename>
mpd.conf
</filename>
on the data partition.
called
<filename>
mpd.conf
</filename>
on the data partition
(the directory which is returned by Android's
<ulink
url=
"https://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()"
>
getExternalStorageDirectory()
</ulink>
API function).
</para>
</section>
...
...
@@ -111,7 +114,7 @@ cd mpd-version</programlisting>
<listitem>
<para>
<ulink
url=
"http://www.boost.org/"
>
Boost 1.
46
</ulink>
<ulink
url=
"http://www.boost.org/"
>
Boost 1.
54
</ulink>
</para>
</listitem>
...
...
python/build/libs.py
View file @
b7dc3fae
...
...
@@ -334,8 +334,8 @@ ffmpeg = FfmpegProject(
)
curl
=
AutotoolsProject
(
'http://curl.haxx.se/download/curl-7.5
8
.0.tar.xz'
,
'
6a813875243609eb75f37fa72044e4ad618b55ec15a4eafdac2df6a7e800e3e3
'
,
'http://curl.haxx.se/download/curl-7.5
9
.0.tar.xz'
,
'
e44eaabdf916407585bf5c7939ff1161e6242b6b015d3f2f5b758b2a330461fc
'
,
'lib/libcurl.a'
,
[
'--disable-shared'
,
'--enable-static'
,
...
...
src/input/ThreadInputStream.cxx
View file @
b7dc3fae
...
...
@@ -37,8 +37,12 @@ ThreadInputStream::ThreadInputStream(const char *_plugin,
allocation
.
ForkCow
(
false
);
}
ThreadInputStream
::~
ThreadInputStream
()
noexcept
void
ThreadInputStream
::
Stop
()
noexcept
{
if
(
!
thread
.
IsDefined
())
return
;
{
const
std
::
lock_guard
<
Mutex
>
lock
(
mutex
);
close
=
true
;
...
...
@@ -69,7 +73,7 @@ ThreadInputStream::ThreadFunc() noexcept
Open
();
}
catch
(...)
{
postponed_exception
=
std
::
current_exception
();
cond
.
broadcast
();
SetReady
();
return
;
}
...
...
src/input/ThreadInputStream.hxx
View file @
b7dc3fae
...
...
@@ -29,6 +29,7 @@
#include <exception>
#include <assert.h>
#include <stdint.h>
/**
...
...
@@ -39,6 +40,11 @@
* manages the thread and the buffer.
*
* This works only for "streams": unknown length, no seeking, no tags.
*
* The implementation must call Stop() before its destruction
* completes. This cannot be done in ~ThreadInputStream() because at
* this point, the class has been morphed back to #ThreadInputStream
* and the still-running thread will crash due to pure method call.
*/
class
ThreadInputStream
:
public
InputStream
{
const
char
*
const
plugin
;
...
...
@@ -73,7 +79,12 @@ public:
const
char
*
_uri
,
Mutex
&
_mutex
,
Cond
&
_cond
,
size_t
_buffer_size
)
noexcept
;
virtual
~
ThreadInputStream
()
noexcept
;
#ifndef NDEBUG
~
ThreadInputStream
()
override
{
/* Stop() must have been called already */
assert
(
!
thread
.
IsDefined
());
}
#endif
/**
* Initialize the object and start the thread.
...
...
@@ -87,6 +98,12 @@ public:
size_t
Read
(
void
*
ptr
,
size_t
size
)
override
final
;
protected
:
/**
* Stop the thread and free the buffer. This must be called
* before destruction of this object completes.
*/
void
Stop
()
noexcept
;
void
SetMimeType
(
const
char
*
_mime
)
noexcept
{
assert
(
thread
.
IsInside
());
...
...
src/input/plugins/MmsInputPlugin.cxx
View file @
b7dc3fae
...
...
@@ -39,6 +39,10 @@ public:
MMS_BUFFER_SIZE
)
{
}
~
MmsInputStream
()
noexcept
override
{
Stop
();
}
protected
:
virtual
void
Open
()
override
;
virtual
size_t
ThreadRead
(
void
*
ptr
,
size_t
size
)
override
;
...
...
src/pcm/PcmDop.cxx
View file @
b7dc3fae
...
...
@@ -46,19 +46,20 @@ pcm_dsd_to_dop(PcmBuffer &buffer, unsigned channels,
assert
(
audio_valid_channel_count
(
channels
));
assert
(
_src
.
size
%
channels
==
0
);
const
unsigned
num_src_samples
=
_src
.
size
;
const
unsigned
num_src_frames
=
num_src_samples
/
channels
;
const
size_t
num_src_samples
=
_src
.
size
;
const
size_t
num_src_frames
=
num_src_samples
/
channels
;
/* this rounds down and discards
the last odd frame
; not
/* this rounds down and discards
up to 3 odd frames
; not
elegant, but good enough for now */
const
unsigned
num_frames
=
num_src_frames
/
2
;
const
unsigned
num_samples
=
num_frames
*
channels
;
const
size_t
num_dop_quads
=
num_src_frames
/
4
;
const
size_t
num_frames
=
num_dop_quads
*
2
;
const
size_t
num_samples
=
num_frames
*
channels
;
uint32_t
*
const
dest0
=
(
uint32_t
*
)
buffer
.
GetT
<
uint32_t
>
(
num_samples
),
*
dest
=
dest0
;
auto
src
=
_src
.
data
;
for
(
unsigned
i
=
num_frames
/
2
;
i
>
0
;
--
i
)
{
for
(
size_t
i
=
num_dop_quads
;
i
>
0
;
--
i
)
{
for
(
unsigned
c
=
channels
;
c
>
0
;
--
c
)
{
/* each 24 bit sample has 16 DSD sample bits
plus the magic 0x05 marker */
...
...
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