2
0
Эх сурвалжийг харах

FIX: Load thumbnails from *.mp3

Alexander Koblov 4 жил өмнө
parent
commit
d1b78e4a26

+ 4 - 0
src/platform/unix/uaudiothumb.pas

@@ -86,6 +86,7 @@ begin
                 // Picture type
                 AStream.ReadByte;
                 // Description
+                AData:= 0;
                 repeat
                   AStream.ReadBuffer(AData, AInc);
                 until (AData = 0);
@@ -101,6 +102,9 @@ begin
                 else if AMimeType = 'image/jpeg' then
                 begin
                   ABitmap:= TJPEGImage.Create;
+                end
+                else begin
+                  ABitmap:= nil;
                 end;
                 if Assigned(ABitmap) then
                 try