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
8422402c
Commit
8422402c
authored
Aug 15, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v0.17.x'
Conflicts: src/player_thread.c
parents
b5fde6df
9374e0f4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
7 deletions
+12
-7
NEWS
NEWS
+1
-0
volume_filter_plugin.c
src/filter/volume_filter_plugin.c
+0
-1
mapper.c
src/mapper.c
+3
-3
player_thread.c
src/player_thread.c
+3
-1
playlist.c
src/playlist.c
+5
-1
volume.c
src/volume.c
+0
-1
No files found.
NEWS
View file @
8422402c
...
...
@@ -13,6 +13,7 @@ ver 0.17.2 (2012/??/??)
- httpd: use monotonic clock, avoid hiccups after system clock adjustment
- httpd: fix throttling bug after resuming playback
* mapper: fix non-UTF8 music directory name
* mapper: fix potential crash in file permission check
ver 0.17.1 (2012/07/31)
...
...
src/filter/volume_filter_plugin.c
View file @
8422402c
...
...
@@ -26,7 +26,6 @@
#include "pcm_buffer.h"
#include "pcm_volume.h"
#include "audio_format.h"
#include "player_control.h"
#include <assert.h>
#include <string.h>
...
...
src/mapper.c
View file @
8422402c
...
...
@@ -93,10 +93,10 @@ check_directory(const char *path)
#endif
DIR
*
dir
=
opendir
(
path
);
if
(
dir
==
NULL
&&
errno
==
EACCES
)
g_warning
(
"No permission to read directory: %s"
,
path
);
else
if
(
dir
!=
NULL
)
closedir
(
dir
);
else
if
(
errno
==
EACCES
)
g_warning
(
"No permission to read directory: %s"
,
path
);
}
static
void
...
...
src/player_thread.c
View file @
8422402c
...
...
@@ -458,6 +458,8 @@ static bool player_seek_decoder(struct player *player)
assert
(
pc
->
next_song
!=
NULL
);
const
unsigned
start_ms
=
song
->
start_ms
;
if
(
!
decoder_lock_is_current_song
(
dc
,
song
))
{
/* the decoder is already decoding the "next" song -
stop it and start the previous song again */
...
...
@@ -506,7 +508,7 @@ static bool player_seek_decoder(struct player *player)
if
(
where
<
0
.
0
)
where
=
0
.
0
;
if
(
!
dc_seek
(
dc
,
where
+
s
ong
->
s
tart_ms
/
1000
.
0
))
{
if
(
!
dc_seek
(
dc
,
where
+
start_ms
/
1000
.
0
))
{
/* decoder failure */
player_command_finished
(
pc
);
return
false
;
...
...
src/playlist.c
View file @
8422402c
...
...
@@ -239,9 +239,13 @@ playlist_sync(struct playlist *playlist, struct player_control *pc)
if
(
pc_next_song
==
NULL
&&
playlist
->
queued
!=
-
1
)
playlist_song_started
(
playlist
,
pc
);
player_lock
(
pc
);
pc_next_song
=
pc
->
next_song
;
player_unlock
(
pc
);
/* make sure the queued song is always set (if
possible) */
if
(
pc
->
next_song
==
NULL
&&
playlist
->
queued
<
0
)
if
(
pc
_
next_song
==
NULL
&&
playlist
->
queued
<
0
)
playlist_update_queued_song
(
playlist
,
pc
,
NULL
);
}
}
...
...
src/volume.c
View file @
8422402c
...
...
@@ -20,7 +20,6 @@
#include "config.h"
#include "volume.h"
#include "conf.h"
#include "player_control.h"
#include "idle.h"
#include "pcm_volume.h"
#include "output_all.h"
...
...
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