summaryrefslogtreecommitdiff
path: root/plugins/Watrack/players/pl_mradio.pas
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2014-04-24 14:55:20 +0000
committerAlexey Kulakov <panda75@bk.ru>2014-04-24 14:55:20 +0000
commitc3a168743616db6606702db5ad0fecab4dfee3da (patch)
tree523ef1399093917f3565d769826ceecb7eb2ef6c /plugins/Watrack/players/pl_mradio.pas
parent90ad600cb38a04c9272a3599c72d6559c822b155 (diff)
Miranda API update
Watrack refactoring, API changes git-svn-id: http://svn.miranda-ng.org/main/trunk@9068 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack/players/pl_mradio.pas')
-rw-r--r--plugins/Watrack/players/pl_mradio.pas12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Watrack/players/pl_mradio.pas b/plugins/Watrack/players/pl_mradio.pas
index b694fb912c..779d0cf13d 100644
--- a/plugins/Watrack/players/pl_mradio.pas
+++ b/plugins/Watrack/players/pl_mradio.pas
@@ -217,19 +217,19 @@ function GetStatus:integer; cdecl;
begin
if CurrentStation<>0 then
begin
- result:=WAT_MES_PLAYING;
+ result:=WAT_PLS_PLAYING;
case CallService(MS_RADIO_COMMAND,MRC_STATUS,RD_STATUS_GET) of
- RD_STATUS_PAUSED : result:=WAT_MES_PAUSED;
+ RD_STATUS_PAUSED : result:=WAT_PLS_PAUSED;
RD_STATUS_STOPPED: begin
- result:=WAT_MES_STOPPED;
+ result:=WAT_PLS_STOPPED;
mFreeMem(prevfile);
end;
RD_STATUS_NOSTATION,
- RD_STATUS_ABORT : result:=WAT_MES_UNKNOWN;
+ RD_STATUS_ABORT : result:=WAT_PLS_UNKNOWN;
end;
end
else
- result:=WAT_MES_STOPPED;
+ result:=WAT_PLS_STOPPED;
end;
function GetInfo(var SongInfo:tSongInfo;flags:integer):integer;cdecl;
@@ -260,7 +260,7 @@ begin
isRemote:=StrPosW(mfile,'://')<>nil;
if (prevfile=nil) or isRemote or (StrCmpW(prevfile,mfile)<>0) then
begin
- ClearTrackInfo(SongInfo,false);
+ ClearTrackInfo(SongInfo);
mFreeMem(prevfile);
StrDupW(prevfile,mfile);