[grilo-plugins] optical-media: Add some more debug



commit 72a7d13d42053fa306d8fa309790d71c06b7049c
Author: Bastien Nocera <hadess hadess net>
Date:   Wed May 7 13:22:22 2014 +0200

    optical-media: Add some more debug
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729704

 src/optical-media/grl-optical-media.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/optical-media/grl-optical-media.c b/src/optical-media/grl-optical-media.c
index 4993d0d..d6a6384 100644
--- a/src/optical-media/grl-optical-media.c
+++ b/src/optical-media/grl-optical-media.c
@@ -377,6 +377,8 @@ create_media_from_mount (GMount *mount)
 
   /* Is it an audio CD or a blank media */
   if (ignore_mount (mount)) {
+    GRL_DEBUG ("%s: Ignoring mount %s", __FUNCTION__,
+               g_mount_get_name (mount));
     g_object_unref (mount);
     return NULL;
   }
@@ -396,6 +398,9 @@ create_media_from_mount (GMount *mount)
   media_set_metadata (mount, media);
   grl_media_set_mime (media, "x-special/device-block");
 
+  GRL_DEBUG ("%s: Adding mount %s (id: %s)", __FUNCTION__,
+             g_mount_get_name (mount), grl_media_get_id (media));
+
   return media;
 }
 


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