[totem-pl-parser] disc: Fix _from_dir() when dir is archive:///...



commit 13f385a2273ddfc1b8418a5a698074d6b303c4ed
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Apr 5 16:47:04 2012 +0100

    disc: Fix _from_dir() when dir is archive:///...

 plparse/totem-disc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plparse/totem-disc.c b/plparse/totem-disc.c
index 4d1d5c3..3e81d74 100644
--- a/plparse/totem-disc.c
+++ b/plparse/totem-disc.c
@@ -736,7 +736,7 @@ totem_cd_detect_type_from_dir (const char *dir, char **mrl, GError **error)
   }
 
   if (type == MEDIA_TYPE_DVD) {
-    *mrl = totem_cd_mrl_from_type ("dvd", cache->mountpoint);
+    *mrl = totem_cd_mrl_from_type ("dvd", cache->mountpoint ? cache->mountpoint : cache->device);
   } else if (type == MEDIA_TYPE_VCD) {
     *mrl = totem_cd_mrl_from_type ("vcd", cache->mountpoint);
   }



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