mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 11:55:44 +03:00
cdrom_id: No "next session" for "other" media state
"other" is known to apply to DVD-RAMs, where sessions can't be appended. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
This commit is contained in:
parent
a6b03c0961
commit
45b1d780b9
@ -678,7 +678,8 @@ static int cd_media_info(struct udev *udev, int fd)
|
||||
}
|
||||
|
||||
determined:
|
||||
if ((header[2] & 3) != 2)
|
||||
/* "other" is e. g. DVD-RAM, can't append sessions there either */
|
||||
if ((header[2] & 3) < 2)
|
||||
cd_media_session_next = header[10] << 8 | header[5];
|
||||
cd_media_session_count = header[9] << 8 | header[4];
|
||||
cd_media_track_count = header[11] << 8 | header[6];
|
||||
|
Loading…
Reference in New Issue
Block a user