Commit f9dcdb12 authored by Philippe Rouquier's avatar Philippe Rouquier Committed by Philippe Rouquier

Changes to make BDR(E) and DVD-RAM appear in the media selection dialog

2009-02-19  Philippe Rouquier  <ykw@localhost.localdomain>

	Changes to make BDR(E) and DVD-RAM appear in the media selection dialog
	Probing was correct for media but drive capabilities had been forgotten

	* libbrasero-media/brasero-drive.c (brasero_drive_init_real):
	* libbrasero-media/brasero-medium.c
	(brasero_medium_can_be_written), (brasero_medium_can_be_rewritten):

svn path=/trunk/; revision=1965
parent 59050d11
2009-02-19 Philippe Rouquier <ykw@localhost.localdomain>
Changes to make BDR(E) and DVD-RAM appear in the media selection dialog
Probing was correct for media but drive capabilities had been forgotten
* libbrasero-media/brasero-drive.c (brasero_drive_init_real):
* libbrasero-media/brasero-medium.c
(brasero_medium_can_be_written), (brasero_medium_can_be_rewritten):
2009-02-19 Luis Medinas <lmedinas@gnome.org>
* src/brasero-project-manager.c:
......
......@@ -954,6 +954,12 @@ brasero_drive_init_real (BraseroDrive *drive)
priv->caps |= BRASERO_DRIVE_CAPS_DVDR_PLUS_DL;
if (libhal_device_get_property_bool (ctx, priv->udi, "storage.cdrom.dvdplusrwdl", NULL))
priv->caps |= BRASERO_DRIVE_CAPS_DVDRW_PLUS_DL;
if (libhal_device_get_property_bool (ctx, priv->udi, "storage.cdrom.dvdram", NULL))
priv->caps |= BRASERO_DRIVE_CAPS_DVDRAM;
if (libhal_device_get_property_bool (ctx, priv->udi, "storage.cdrom.bdr", NULL))
priv->caps |= BRASERO_DRIVE_CAPS_BDR;
if (libhal_device_get_property_bool (ctx, priv->udi, "storage.cdrom.bdre", NULL))
priv->caps |= BRASERO_DRIVE_CAPS_BDRW;
BRASERO_MEDIA_LOG ("Drive caps are %d", priv->caps);
......
......@@ -3158,6 +3158,16 @@ brasero_medium_can_be_written (BraseroMedium *medium)
if (BRASERO_MEDIUM_IS (priv->info, BRASERO_MEDIUM_DVDRW_PLUS_DL))
return (caps & BRASERO_DRIVE_CAPS_DVDRW_PLUS_DL) != 0;
if (BRASERO_MEDIUM_IS (priv->info, BRASERO_MEDIUM_DVD_RAM))
return (caps & BRASERO_DRIVE_CAPS_DVDRAM) != 0;
/* All types of BD-R */
if (BRASERO_MEDIUM_IS (priv->info, BRASERO_MEDIUM_BD|BRASERO_MEDIUM_WRITABLE))
return (caps & BRASERO_DRIVE_CAPS_BDR) != 0;
if (BRASERO_MEDIUM_IS (priv->info, BRASERO_MEDIUM_BDRE))
return (caps & BRASERO_DRIVE_CAPS_BDRW) != 0;
return FALSE;
}
......@@ -3202,6 +3212,12 @@ brasero_medium_can_be_rewritten (BraseroMedium *medium)
if (BRASERO_MEDIUM_IS (priv->info, BRASERO_MEDIUM_DVDRW_PLUS_DL))
return (caps & BRASERO_DRIVE_CAPS_DVDRW_PLUS_DL) != 0;
if (BRASERO_MEDIUM_IS (priv->info, BRASERO_MEDIUM_DVD_RAM))
return (caps & BRASERO_DRIVE_CAPS_DVDRAM) != 0;
if (BRASERO_MEDIUM_IS (priv->info, BRASERO_MEDIUM_BDRE))
return (caps & BRASERO_DRIVE_CAPS_BDRW) != 0;
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment