media-engine: Warn when fail to setup source
authorJens Georg <jensg@openismus.com>
Wed, 12 Jun 2013 12:22:53 +0000 (14:22 +0200)
committerJens Georg <jensg@openismus.com>
Wed, 12 Jun 2013 12:22:53 +0000 (14:22 +0200)
Print a proper warning if we fail to create a source and not just some
obscure "Not found" error.

src/media-engines/gstreamer/rygel-gst-media-engine.vala

index a2d8722..1486737 100644 (file)
@@ -120,6 +120,10 @@ public class Rygel.GstMediaEngine : Rygel.MediaEngine {
         try {
             return new GstDataSource (uri);
         } catch (Error error) {
+            warning (_("Failed to create GStreamer data source for %s: %s"),
+                     uri,
+                     error.message);
+
             return null;
         }
     }