fix: allow blank media in medium-info

This resolves the second part of issue #19.

This bug was present since upstream v0.79.5
This commit is contained in:
Stéphane Lesimple
2021-01-12 20:07:16 +01:00
parent 93c6a7a887
commit 396c73f5c8
6 changed files with 41 additions and 20 deletions

View File

@@ -104,7 +104,7 @@ void PrintMediumInfo(void *mi_ptr)
print_defaults(mi);
#endif
image = OpenImageFromDevice(Closure->device);
image = OpenImageFromDevice(Closure->device, 2 /* allow blanks, see comment in OpenImageFromDevice() */);
if(!image) return;
dh = image->dh;
QueryBlankCapacity(dh);