aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-31 23:29:35 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-31 23:29:35 +0000
commit1a5b04e4e83640cd0a58d4e49fe755598af73262 (patch)
tree3eef1d5d024b408346edbd8ce2b6f4d695138f22 /src/player.h
parent5f2c19bfc9e3afc53017e9a76cde0258a5c56388 (diff)
downloadmpd-1a5b04e4e83640cd0a58d4e49fe755598af73262.tar.gz
mpd-1a5b04e4e83640cd0a58d4e49fe755598af73262.tar.xz
mpd-1a5b04e4e83640cd0a58d4e49fe755598af73262.zip
some stream metadata fixes
git-svn-id: https://svn.musicpd.org/mpd/trunk@1266 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h
index 31560fb3b..e7d21f7b9 100644
--- a/src/player.h
+++ b/src/player.h
@@ -21,6 +21,7 @@
#include "../config.h"
+#include "decode.h"
#include "mpd_types.h"
#include "song.h"
@@ -51,6 +52,9 @@
#define PLAYER_QUEUE_UNLOCKED 0
#define PLAYER_QUEUE_LOCKED 1
+#define PLAYER_METADATA_STATE_READ 1
+#define PLAYER_METADATA_STATE_WRITE 2
+
typedef struct _PlayerControl {
volatile mpd_sint8 stop;
volatile mpd_sint8 play;
@@ -67,6 +71,7 @@ typedef struct _PlayerControl {
volatile float elapsedTime;
volatile float fileTime;
char utf8url[MAXPATHLEN+1];
+ char currentUrl[MAXPATHLEN+1];
char erroredUrl[MAXPATHLEN+1];
volatile mpd_sint8 queueState;
volatile mpd_sint8 queueLockState;
@@ -79,6 +84,9 @@ typedef struct _PlayerControl {
volatile double totalPlayTime;
volatile int decode_pid;
volatile mpd_sint8 cycleLogFiles;
+ volatile mpd_sint8 metadataState;
+ char metadata[DECODE_METADATA_LENGTH];
+ volatile mpd_sint16 title;
} PlayerControl;
void clearPlayerPid();