[rygel] engine-gst: Use FUSE path instead of uri if possible
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] engine-gst: Use FUSE path instead of uri if possible
- Date: Sun, 8 May 2016 20:22:29 +0000 (UTC)
commit 9877467629a0361b30c70434f3d60cd45a441e4f
Author: Jens Georg <mail jensge org>
Date: Sat Apr 30 18:21:09 2016 +0200
engine-gst: Use FUSE path instead of uri if possible
Signed-off-by: Jens Georg <mail jensge org>
https://bugzilla.gnome.org/show_bug.cgi?id=685800
src/media-engines/gstreamer/rygel-gst-utils.vala | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/media-engines/gstreamer/rygel-gst-utils.vala
b/src/media-engines/gstreamer/rygel-gst-utils.vala
index 9c9d1b3..1b7b7c4 100644
--- a/src/media-engines/gstreamer/rygel-gst-utils.vala
+++ b/src/media-engines/gstreamer/rygel-gst-utils.vala
@@ -67,7 +67,15 @@ internal abstract class Rygel.GstUtils {
}
src.device = Soup.URI.decode (tmp.path);
} else {
- src = Element.make_from_uri (URIType.SRC, uri, null);
+ var file = File.new_for_uri (uri);
+ var path = file.get_path ();
+ if (path != null) {
+ src = Element.make_from_uri (URIType.SRC,
+ Filename.to_uri (path),
+ null);
+ } else {
+ src = Element.make_from_uri (URIType.SRC, uri, null);
+ }
}
if (src.get_class ().find_property ("blocksize") != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]