diff options
Diffstat (limited to 'plugins/Watrack/formats')
-rw-r--r-- | plugins/Watrack/formats/fmt_mp3.pas | 7 |
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;
|