summaryrefslogtreecommitdiff
path: root/plugins/Watrack/formats
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2014-01-16 03:11:48 +0000
committerAlexey Kulakov <panda75@bk.ru>2014-01-16 03:11:48 +0000
commitde34b251b442cdf72b13c407d6b60c343c123bb3 (patch)
treea2e05db9606405b78b949ccc67860bb2096f1f5e /plugins/Watrack/formats
parent74220939c1156067d46ccb85cbc307737cd5a244 (diff)
sync
git-svn-id: http://svn.miranda-ng.org/main/trunk@7674 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack/formats')
-rw-r--r--plugins/Watrack/formats/fmt_mp3.pas7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Watrack/formats/fmt_mp3.pas b/plugins/Watrack/formats/fmt_mp3.pas
index 5d6c94745a..45c0888daa 100644
--- a/plugins/Watrack/formats/fmt_mp3.pas
+++ b/plugins/Watrack/formats/fmt_mp3.pas
@@ -161,8 +161,11 @@ begin
ReadID3v2(f,Info);
BlockRead(f,l,4);
// if l[0]<>$FF then
- if not SearchStart(f,l) then
- Exit;
+ if not SearchStart(f,l) then
+ begin
+ CloseHandle(f);
+ Exit;
+ end;
TranslateFrameHdr(l,hdr);
CheckVBR(f,hdr);
Info.kbps :=hdr.Bitrate;