[rygel] engine-gst: Add non-proxy http resource as first resource
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] engine-gst: Add non-proxy http resource as first resource
- Date: Sun, 24 May 2015 11:27:13 +0000 (UTC)
commit bb7a19074c970002f4c686b4413e51118457e432
Author: Jens Georg <mail jensge org>
Date: Sun May 24 13:05:25 2015 +0200
engine-gst: Add non-proxy http resource as first resource
Signed-off-by: Jens Georg <mail jensge org>
.../gstreamer/rygel-gst-media-engine.vala | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/media-engines/gstreamer/rygel-gst-media-engine.vala
b/src/media-engines/gstreamer/rygel-gst-media-engine.vala
index 3dbc6cd..7ca76b8 100644
--- a/src/media-engines/gstreamer/rygel-gst-media-engine.vala
+++ b/src/media-engines/gstreamer/rygel-gst-media-engine.vala
@@ -181,7 +181,12 @@ public class Rygel.GstMediaEngine : Rygel.MediaEngine {
}
// Put the primary resource as most-preferred (front of the list)
- resources.add (primary_res);
+ if (primary_res.uri != null &&
+ primary_res.uri.has_prefix ("http:")) {
+ resources.insert (0, primary_res);
+ } else {
+ resources.add (primary_res);
+ }
return resources;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]