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

@@ -626,7 +626,7 @@ static void open_and_determine_mode(read_closure *rc)
/* open the device */
rc->medium = OpenImageFromDevice(Closure->device);
rc->medium = OpenImageFromDevice(Closure->device, 0);
rc->dh = rc->medium->dh;
rc->readMode = IMAGE_ONLY;