playlist: added G_LOG_DOMAIN
Removed the explicit "playlist:" prefix from all log messages.
This commit is contained in:
parent
2a1bef2225
commit
19397a84cc
@ -30,6 +30,9 @@
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
#undef G_LOG_DOMAIN
|
||||||
|
#define G_LOG_DOMAIN "playlist"
|
||||||
|
|
||||||
void playlistVersionChange(struct playlist *playlist)
|
void playlistVersionChange(struct playlist *playlist)
|
||||||
{
|
{
|
||||||
queue_modify_all(&playlist->queue);
|
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);
|
song = queue_get_order(&playlist->queue, order);
|
||||||
uri = song_get_uri(song);
|
uri = song_get_uri(song);
|
||||||
g_debug("playlist: queue song %i:\"%s\"",
|
g_debug("queue song %i:\"%s\"", playlist->queued, uri);
|
||||||
playlist->queued, uri);
|
|
||||||
g_free(uri);
|
g_free(uri);
|
||||||
|
|
||||||
queueSong(song);
|
queueSong(song);
|
||||||
@ -178,7 +180,7 @@ playPlaylistOrderNumber(struct playlist *playlist, int orderNum)
|
|||||||
song = queue_get_order(&playlist->queue, orderNum);
|
song = queue_get_order(&playlist->queue, orderNum);
|
||||||
|
|
||||||
uri = song_get_uri(song);
|
uri = song_get_uri(song);
|
||||||
g_debug("playlist: play %i:\"%s\"", orderNum, uri);
|
g_debug("play %i:\"%s\"", orderNum, uri);
|
||||||
g_free(uri);
|
g_free(uri);
|
||||||
|
|
||||||
playerPlay(song);
|
playerPlay(song);
|
||||||
|
@ -24,6 +24,11 @@
|
|||||||
#include "playlist_internal.h"
|
#include "playlist_internal.h"
|
||||||
#include "player_control.h"
|
#include "player_control.h"
|
||||||
|
|
||||||
|
#include <glib.h>
|
||||||
|
|
||||||
|
#undef G_LOG_DOMAIN
|
||||||
|
#define G_LOG_DOMAIN "playlist"
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
/**
|
/**
|
||||||
* When the "prev" command is received, rewind the current
|
* When the "prev" command is received, rewind the current
|
||||||
@ -39,7 +44,7 @@ void stopPlaylist(struct playlist *playlist)
|
|||||||
|
|
||||||
assert(playlist->current >= 0);
|
assert(playlist->current >= 0);
|
||||||
|
|
||||||
g_debug("playlist: stop");
|
g_debug("stop");
|
||||||
playerWait();
|
playerWait();
|
||||||
playlist->queued = -1;
|
playlist->queued = -1;
|
||||||
playlist->playing = false;
|
playlist->playing = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user