Add a call to cdio_get_media_changed in RipCD::CheckCDIOIsValid

This prevents an erroneous message that the media has changed the first
time the ripCD dialog is used.
This commit is contained in:
Mattias Andersson 2014-04-13 14:41:04 +02:00
parent 31400f2740
commit 44025dc588
1 changed files with 3 additions and 0 deletions

View File

@ -413,6 +413,9 @@ bool RipCD::CheckCDIOIsValid() {
cdio_destroy(cdio_);
}
cdio_ = cdio_open(NULL, DRIVER_UNKNOWN);
// Refresh the status of the cd media. This will prevent unnecessary
// rebuilds of the track list table.
cdio_get_media_changed(cdio_);
return (cdio_);
}