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
9b6a2589
Commit
9b6a2589
authored
Oct 29, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v0.20.x'
parents
92523f8c
cc5fab28
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
16 deletions
+14
-16
NEWS
NEWS
+6
-0
Error.hxx
src/input/Error.hxx
+0
-8
FloatConvert.hxx
src/pcm/FloatConvert.hxx
+4
-2
Control.cxx
src/player/Control.cxx
+2
-6
Thread.cxx
src/player/Thread.cxx
+2
-0
No files found.
NEWS
View file @
9b6a2589
...
...
@@ -49,6 +49,12 @@ ver 0.21 (not yet released)
* build with Meson instead of autotools
* use GTest instead of cppunit
ver 0.20.23 (not yet released)
* protocol
- emit "player" idle event when restarting the current song
* fix broken float to s32 conversion
* new clang crash bug workaround
ver 0.20.22 (2018/10/23)
* protocol
- add tag fallbacks for AlbumArtistSort, ArtistSort
...
...
src/input/Error.hxx
View file @
9b6a2589
...
...
@@ -30,15 +30,7 @@
* exist? This function attempts to recognize exceptions thrown by
* various input plugins.
*/
#ifndef __clang__
/* the "pure" attribute must be disabled because it triggers a clang
bug, wrongfully leading to std::terminate() even though the
function catches all exceptions thrown by std::rethrow_exception();
this can be reproduced with clang 7 from Android NDK r18b and on
clang 6 on FreeBSD
(https://github.com/MusicPlayerDaemon/MPD/issues/373) */
gcc_pure
#endif
bool
IsFileNotFound
(
std
::
exception_ptr
e
)
noexcept
;
...
...
src/pcm/FloatConvert.hxx
View file @
9b6a2589
...
...
@@ -34,7 +34,8 @@ struct FloatToIntegerSampleConvert {
typedef
typename
SrcTraits
::
long_type
SL
;
typedef
typename
DstTraits
::
value_type
DV
;
static
constexpr
SV
factor
=
1
<<
(
DstTraits
::
BITS
-
1
);
static
constexpr
SV
factor
=
uintmax_t
(
1
)
<<
(
DstTraits
::
BITS
-
1
);
static_assert
(
factor
>
0
,
"Wrong factor"
);
gcc_const
static
DV
Convert
(
SV
src
)
noexcept
{
...
...
@@ -53,7 +54,8 @@ struct IntegerToFloatSampleConvert {
typedef
typename
SrcTraits
::
value_type
SV
;
typedef
typename
DstTraits
::
value_type
DV
;
static
constexpr
DV
factor
=
0.5
/
(
1
<<
(
SrcTraits
::
BITS
-
2
));
static
constexpr
DV
factor
=
1.0
/
FloatToIntegerSampleConvert
<
F
,
Traits
>::
factor
;
static_assert
(
factor
>
0
,
"Wrong factor"
);
gcc_const
static
DV
Convert
(
SV
src
)
noexcept
{
...
...
src/player/Control.cxx
View file @
9b6a2589
...
...
@@ -291,12 +291,8 @@ PlayerControl::LockSeek(std::unique_ptr<DetachedSong> song, SongTime t)
assert
(
song
!=
nullptr
);
{
const
std
::
lock_guard
<
Mutex
>
protect
(
mutex
);
SeekLocked
(
std
::
move
(
song
),
t
);
}
idle_add
(
IDLE_PLAYER
);
const
std
::
lock_guard
<
Mutex
>
protect
(
mutex
);
SeekLocked
(
std
::
move
(
song
),
t
);
}
void
...
...
src/player/Thread.cxx
View file @
9b6a2589
...
...
@@ -606,6 +606,8 @@ Player::SeekDecoder() noexcept
pc
.
outputs
.
Cancel
();
}
idle_add
(
IDLE_PLAYER
);
if
(
!
dc
.
IsSeekableCurrentSong
(
*
pc
.
next_song
))
{
/* the decoder is already decoding the "next" song -
stop it and start the previous song again */
...
...
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