[Bug 797146] New: uri: fix roundtrip for file:// URIs
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Fri Sep 14 17:46:00 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=797146
Bug ID: 797146
Summary: uri: fix roundtrip for file:// URIs
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: minor
Priority: Normal
Component: gstreamer (core)
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: t.i.m at zen.co.uk
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 373661
--> https://bugzilla.gnome.org/attachment.cgi?id=373661&action=edit
uri: fix roundtrip for file:// uris
uri = gst_uri_from_string ("file:///path/to/foo.bar");
string = gst_uri_to_string (uri);
would return "file:/path/to/foo.bar".
Slashes get lost somewhere.
Setting the hostname to "" after gst_uri_from_string() "fixes" it.
Attached patch fixes it also without making any of the other unit tests fail,
but it's pretty much cargo-culted without real understanding.
Question is if this is something that needs to be fixed serialisation-side or
parsing-side I guess.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list