[Goodies-commits] r4864 - xfburn/trunk/xfburn
David Mohr
squisher at xfce.org
Fri May 30 01:57:26 CEST 2008
Author: squisher
Date: 2008-05-29 23:57:26 +0000 (Thu, 29 May 2008)
New Revision: 4864
Modified:
xfburn/trunk/xfburn/xfburn-device-list.c
Log:
Invalidate stored disc data upon refresh
Modified: xfburn/trunk/xfburn/xfburn-device-list.c
===================================================================
--- xfburn/trunk/xfburn/xfburn-device-list.c 2008-05-29 22:59:11 UTC (rev 4863)
+++ xfburn/trunk/xfburn/xfburn-device-list.c 2008-05-29 23:57:26 UTC (rev 4864)
@@ -115,7 +115,6 @@
if ((ret = burn_disc_get_profile(drive_info->drive, &profile_no, profile_name)) != 1) {
g_warning ("no profile could be retrieved");
- profile_no = 0;
}
is_erasable = burn_disc_erasable (drive_info->drive);
DBG ("profile_no = 0x%x (%s), %s erasable", profile_no, profile_name, (is_erasable ? "" : "NOT"));
@@ -228,6 +227,11 @@
return FALSE;
}
+ /* reset other internal structures */
+ profile_no = 0;
+ *profile_name = 0;
+ is_erasable = 0;
+
if (!burn_initialize ()) {
g_critical ("Unable to initialize libburn");
return FALSE;
More information about the Goodies-commits
mailing list