summaryrefslogtreecommitdiff
path: root/src/totem-uri.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-07-02 18:56:27 +0100
committerBastien Nocera <hadess@hadess.net>2012-07-02 20:24:29 +0100
commitc93dbf7a37bc2862dec23245db8cf915ad670a94 (patch)
tree2934c4f792d977e747b3123c228fba7155890841 /src/totem-uri.c
parent5f18bec3684a186406ee20eacd6a01ece54011be (diff)
downloadtotem-c93dbf7a37bc2862dec23245db8cf915ad670a94.tar.gz
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.
Diffstat (limited to 'src/totem-uri.c')
-rw-r--r--src/totem-uri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/totem-uri.c b/src/totem-uri.c
index 6166da2d1..4b1b5078e 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;
}