g_free (location);
location = (gchar *) gst_uri_handler_get_uri (GST_URI_HANDLER (filesink));
- fail_unless_equals_string (location, "file://%2Fi%2Fdo%2Fnot%2Fexist");
+ fail_unless_equals_string (location, "file:///i/do/not/exist");
/* should accept file:///foo/bar URIs */
fail_unless (gst_uri_handler_set_uri (GST_URI_HANDLER (filesink),
"file:///foo/bar"));
location = (gchar *) gst_uri_handler_get_uri (GST_URI_HANDLER (filesink));
- fail_unless_equals_string (location, "file://%2Ffoo%2Fbar");
+ fail_unless_equals_string (location, "file:///foo/bar");
g_object_get (G_OBJECT (filesink), "location", &location, NULL);
fail_unless_equals_string (location, "/foo/bar");
g_free (location);
fail_unless (gst_uri_handler_set_uri (GST_URI_HANDLER (filesink),
"file://localhost/foo/baz"));
location = (gchar *) gst_uri_handler_get_uri (GST_URI_HANDLER (filesink));
- fail_unless_equals_string (location, "file://%2Ffoo%2Fbaz");
+ fail_unless_equals_string (location, "file:///foo/baz");
g_object_get (G_OBJECT (filesink), "location", &location, NULL);
fail_unless_equals_string (location, "/foo/baz");
g_free (location);
g_free (location);
location = (gchar *) gst_uri_handler_get_uri (GST_URI_HANDLER (src));
- fail_unless_equals_string (location, "file://%2Fi%2Fdo%2Fnot%2Fexist");
+ fail_unless_equals_string (location, "file:///i/do/not/exist");
/* should accept file:///foo/bar URIs */
fail_unless (gst_uri_handler_set_uri (GST_URI_HANDLER (src),
"file:///foo/bar"));
location = (gchar *) gst_uri_handler_get_uri (GST_URI_HANDLER (src));
- fail_unless_equals_string (location, "file://%2Ffoo%2Fbar");
+ fail_unless_equals_string (location, "file:///foo/bar");
g_object_get (G_OBJECT (src), "location", &location, NULL);
fail_unless_equals_string (location, "/foo/bar");
g_free (location);
fail_unless (gst_uri_handler_set_uri (GST_URI_HANDLER (src),
"file://localhost/foo/baz"));
location = (gchar *) gst_uri_handler_get_uri (GST_URI_HANDLER (src));
- fail_unless_equals_string (location, "file://%2Ffoo%2Fbaz");
+ fail_unless_equals_string (location, "file:///foo/baz");
g_object_get (G_OBJECT (src), "location", &location, NULL);
fail_unless_equals_string (location, "/foo/baz");
g_free (location);