summaryrefslogtreecommitdiff
path: root/plugins/Watrack/kolframe
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Watrack/kolframe')
-rw-r--r--plugins/Watrack/kolframe/frm_frame.inc4
-rw-r--r--plugins/Watrack/kolframe/kolframe.pas5
2 files changed, 5 insertions, 4 deletions
diff --git a/plugins/Watrack/kolframe/frm_frame.inc b/plugins/Watrack/kolframe/frm_frame.inc
index b1e6d9e262..9f58abb9cd 100644
--- a/plugins/Watrack/kolframe/frm_frame.inc
+++ b/plugins/Watrack/kolframe/frm_frame.inc
@@ -63,7 +63,7 @@ begin
if D.Trackbar<>nil then
begin
- if (CallService(MS_WAT_GETMUSICINFO,WAT_INF_CHANGES,tlparam(@psi))<>WAT_PLS_NOTFOUND) then
+ if (CallService(MS_WAT_GETMUSICINFO,WAT_INF_CHANGES,tlparam(@psi))<>WAT_RES_NOTFOUND) then
begin
SetTrackBarPosition(D.Trackbar,(psi^.time*1000) div D.UpdInterval)
end;
@@ -412,7 +412,7 @@ begin
RegisterButtonIcons;
D.Trackbar:=MakeNewTrackbar(@self);
// for case when TB creating after track start (fastest way)
- // can use (CallService(MS_WAT_GETMUSICINFO,WAT_INF_CHANGES,tlparam(@psi))<>WAT_PLS_NOTFOUND)
+ // can use (CallService(MS_WAT_GETMUSICINFO,WAT_INF_CHANGES,tlparam(@psi))<>WAT_RES_NOTFOUND)
psi:=pointer(CallService(MS_WAT_RETURNGLOBAL,WAT_INF_UNICODE,1));
TrackbarSetRange(D.Trackbar,D.UpdInterval,psi^.total);
end;
diff --git a/plugins/Watrack/kolframe/kolframe.pas b/plugins/Watrack/kolframe/kolframe.pas
index 8120e34f0e..49a541a206 100644
--- a/plugins/Watrack/kolframe/kolframe.pas
+++ b/plugins/Watrack/kolframe/kolframe.pas
@@ -106,8 +106,7 @@ begin
case wParam of
WAT_EVENT_PLAYERSTATUS: begin
case integer(loword(lParam)) of
- WAT_PLS_NORMAL : exit;
- WAT_PLS_NOMUSIC : begin
+ WAT_PLS_STOPPED : begin
if D.HideNoMusic then
HideFrame(D.FrameId)
else
@@ -119,6 +118,8 @@ begin
SetFrameTitle(PluginShort,0,0); // frame update code there
end;
+ else
+ exit;
end;
FrameCtrl.ResetFrame;
end;