[rygel] core: Tell the assumed protocol when probe fails
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] core: Tell the assumed protocol when probe fails
- Date: Wed, 17 Jun 2009 07:36:38 -0400 (EDT)
commit f86e7a04a4c43697fbef8065cacdce7c8f64b0eb
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Jun 15 10:41:37 2009 +0300
core: Tell the assumed protocol when probe fails
src/rygel/rygel-media-item.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-media-item.vala b/src/rygel/rygel-media-item.vala
index 145df9a..ca9dcf7 100644
--- a/src/rygel/rygel-media-item.vala
+++ b/src/rygel/rygel-media-item.vala
@@ -126,14 +126,16 @@ public class Rygel.MediaItem : MediaObject {
// FIXME: Assuming that RTSP is always accompanied with RTP over UDP
return "rtsp-rtp-udp";
} else {
- warning ("Failed to probe protocol for URI %s", uri);
-
// Assume the protocol to be the scheme of the URI
var tokens = uri.split (":", 2);
if (tokens[0] == null) {
throw new MediaItemError.BAD_URI ("Bad URI: %s", uri);
}
+ warning ("Failed to probe protocol for URI %s. Assuming '%s'",
+ uri,
+ tokens[0]);
+
return tokens[0];
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]