[Xfce4-commits] [apps/xfburn] 01/01: Trust libburn's media profile more than drive capabilities

noreply at xfce.org noreply at xfce.org
Sun Mar 30 19:51:35 CEST 2014


This is an automated email from the git hooks/post-receive script.

squisher pushed a commit to branch master
in repository apps/xfburn.

commit fbd4735c5088d19684ff182074a136006789ed47
Author: David Mohr <david at mcbf.net>
Date:   Sun Mar 30 11:49:53 2014 -0600

    Trust libburn's media profile more than drive capabilities
    
    Previously info from udev was used to determine whether a drive can burn
    on a given disc. Now let libburn determine whether the present drive and
    disc combination are writable.
    
    Thanks Thomas.
---
 xfburn/xfburn-device-box.c |   18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/xfburn/xfburn-device-box.c b/xfburn/xfburn-device-box.c
index 6cf937d..378b637 100644
--- a/xfburn/xfburn-device-box.c
+++ b/xfburn/xfburn-device-box.c
@@ -545,19 +545,13 @@ check_disc_validity (XfburnDeviceBoxPrivate *priv)
     /* for burning */
     switch (profile_no) {
       case XFBURN_PROFILE_NONE:
-        /* empty drive is caught later,
-         * not sure if there would be another reason for 0x0 */
-        priv->valid_disc = TRUE;
-        break;
+        /* Very old CD burner (MMC-1) or unsuitable medium.
+         * An unsuitable medium will later be marked invalid because it is not
+         * BURN_DISC_BLANK. So for now it is a valid disc on probation.
+         */
       case XFBURN_PROFILE_CDR:
-        g_object_get (G_OBJECT (device), "cdr", &priv->valid_disc, NULL);
-        break;
       case XFBURN_PROFILE_CDRW:
-        g_object_get (G_OBJECT (device), "cdrw", &priv->valid_disc, NULL);
-        break;
       case XFBURN_PROFILE_DVDRAM:
-        g_object_get (G_OBJECT (device), "dvdram", &priv->valid_disc, NULL);
-        break;
       case XFBURN_PROFILE_DVD_MINUS_R:
       case XFBURN_PROFILE_DVD_MINUS_RW_OVERWRITE:
       case XFBURN_PROFILE_DVD_MINUS_RW_SEQUENTIAL:
@@ -565,11 +559,9 @@ check_disc_validity (XfburnDeviceBoxPrivate *priv)
       case XFBURN_PROFILE_DVD_PLUS_R:
       case XFBURN_PROFILE_DVD_PLUS_R_DL:
       case XFBURN_PROFILE_DVD_PLUS_RW:
-        g_object_get (G_OBJECT (device), "dvdr", &priv->valid_disc, NULL);
-        break;
       case XFBURN_PROFILE_BD_R:
       case XFBURN_PROFILE_BD_RE:
-        g_object_get (G_OBJECT (device), "bd", &priv->valid_disc, NULL);
+        priv->valid_disc = TRUE;
         break;
       case XFBURN_PROFILE_CDROM:
       case XFBURN_PROFILE_DVDROM:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list