summaryrefslogtreecommitdiff
path: root/src/media-engines/gstreamer
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2016-04-30 18:21:09 +0200
committerJens Georg <mail@jensge.org>2016-05-08 22:14:58 +0200
commit9877467629a0361b30c70434f3d60cd45a441e4f (patch)
treefe7524b1a858bded5fcc488f44e2f122fdca2488 /src/media-engines/gstreamer
parent51d449c34852e5a4e3ee2c0297d61293f0df617a (diff)
downloadrygel-9877467629a0361b30c70434f3d60cd45a441e4f.tar.gz
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
Diffstat (limited to 'src/media-engines/gstreamer')
-rw-r--r--src/media-engines/gstreamer/rygel-gst-utils.vala10
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 9c9d1b3e..1b7b7c43 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) {