From e69e30e2b9d5d623171a3cbbd954ed8169fb372d Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 20 Nov 2009 15:02:09 +0200 Subject: modified: watrack_mpd/main.c --- watrack_mpd/main.c | 13 ++----------- 1 file 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; } -- cgit v1.2.3