diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2009-11-20 15:02:09 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2009-11-20 15:02:09 +0200 |
commit | e69e30e2b9d5d623171a3cbbd954ed8169fb372d (patch) | |
tree | f479640448ad72d556d7317ac58d83ca450f7bc0 | |
parent | 9b3eb2c75214d87ec696f54642a1d96c291538dc (diff) |
modified: watrack_mpd/main.c
-rwxr-xr-x | watrack_mpd/main.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/watrack_mpd/main.c b/watrack_mpd/main.c index ce225e6..d9587aa 100755 --- a/watrack_mpd/main.c +++ b/watrack_mpd/main.c @@ -21,7 +21,6 @@ void Start();
int Parser();
-int Flags = 0;
LPINITPROC Init()
{
@@ -42,7 +41,6 @@ LPCHECKPROC CheckPlayer(HWND wnd, int flags) return 0;
}
Parser();
- flags = Flags;
if(Connected)
return (LPCHECKPROC)1;
return 0;
@@ -111,7 +109,6 @@ LPINFOPROC GetPlayerInfo(LPSONGINFO info, int flags) info->track = SongInfo.track;
info->khz = SongInfo.khz;
info->volume = SongInfo.volume;
- flags = Flags;
/* info->url = SongInfo.url; //??
info->vbr = SongInfo.vbr;
info->volume = SongInfo.volume;
@@ -153,7 +150,7 @@ int Parser() char tmp[128];
int i;
char *buf;
- static char ver[16], title[64];
+ static char ver[16];
nlpr.cbSize = sizeof(nlpr);
nlpr.dwTimeout = 5;
if(!ghConnection)
@@ -197,7 +194,7 @@ int Parser() SongInfo.txtver = (TCHAR*)mir_utf8decodeW(tmp);
}
else
- SongInfo.txtver = (TCHAR*)mir_a2t(ver);
+ SongInfo.txtver = (TCHAR*)mir_utf8decodeW(ver);
if(ptr = strstr(buf, "file:"))
{
ptr = &ptr[6];
@@ -234,11 +231,6 @@ int Parser() for(i = 0; ((ptr[i] != '\n') && (ptr[i] != '\0')); i++)
tmp[i] = ptr[i];
tmp[i] = '\0';
- if(strcmp(title, tmp))
- Flags |= WAT_EVENT_NEWTRACK;
- else
- Flags = 0;
- strcpy(title, tmp);
SongInfo.title = (TCHAR*)mir_utf8decodeW(tmp);
}
else
@@ -339,7 +331,6 @@ int Parser() }
else if(!gbState)
gbState = WAT_MES_UNKNOWN;
- Flags |= WAT_OPT_CHANGES;
return 0;
}
|