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
19397a84
Commit
19397a84
authored
Feb 04, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: added G_LOG_DOMAIN
Removed the explicit "playlist:" prefix from all log messages.
parent
2a1bef22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
playlist.c
src/playlist.c
+5
-3
playlist_control.c
src/playlist_control.c
+6
-1
No files found.
src/playlist.c
View file @
19397a84
...
...
@@ -30,6 +30,9 @@
#include <assert.h>
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "playlist"
void
playlistVersionChange
(
struct
playlist
*
playlist
)
{
queue_modify_all
(
&
playlist
->
queue
);
...
...
@@ -80,8 +83,7 @@ playlist_queue_song_order(struct playlist *playlist, unsigned order)
song
=
queue_get_order
(
&
playlist
->
queue
,
order
);
uri
=
song_get_uri
(
song
);
g_debug
(
"playlist: queue song %i:
\"
%s
\"
"
,
playlist
->
queued
,
uri
);
g_debug
(
"queue song %i:
\"
%s
\"
"
,
playlist
->
queued
,
uri
);
g_free
(
uri
);
queueSong
(
song
);
...
...
@@ -178,7 +180,7 @@ playPlaylistOrderNumber(struct playlist *playlist, int orderNum)
song
=
queue_get_order
(
&
playlist
->
queue
,
orderNum
);
uri
=
song_get_uri
(
song
);
g_debug
(
"play
list: play
%i:
\"
%s
\"
"
,
orderNum
,
uri
);
g_debug
(
"play %i:
\"
%s
\"
"
,
orderNum
,
uri
);
g_free
(
uri
);
playerPlay
(
song
);
...
...
src/playlist_control.c
View file @
19397a84
...
...
@@ -24,6 +24,11 @@
#include "playlist_internal.h"
#include "player_control.h"
#include <glib.h>
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "playlist"
enum
{
/**
* When the "prev" command is received, rewind the current
...
...
@@ -39,7 +44,7 @@ void stopPlaylist(struct playlist *playlist)
assert
(
playlist
->
current
>=
0
);
g_debug
(
"
playlist:
stop"
);
g_debug
(
"stop"
);
playerWait
();
playlist
->
queued
=
-
1
;
playlist
->
playing
=
false
;
...
...
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