[totem] main: Fix totem_get_mount_for_dvd() not working



commit c93dbf7a37bc2862dec23245db8cf915ad670a94
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jul 2 18:56:27 2012 +0100

    main: Fix totem_get_mount_for_dvd() not working
    
    We were checking the retval of g_mount_can_eject() the wrong way
    around, so we never got a mount for the DVD device in question.

 src/totem-uri.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-uri.c b/src/totem-uri.c
index 6166da2..4b1b507 100644
--- a/src/totem-uri.c
+++ b/src/totem-uri.c
@@ -130,7 +130,7 @@ totem_get_mount_for_uri (const char *path)
 		return NULL;
 
 	/* FIXME: We used to explicitly check whether it was a CD/DVD */
-	if (g_mount_can_eject (mount) == TRUE) {
+	if (g_mount_can_eject (mount) == FALSE) {
 		g_object_unref (mount);
 		return NULL;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]