summaryrefslogtreecommitdiff
path: root/tests/examples/seek/scrubby.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/seek/scrubby.c')
-rw-r--r--tests/examples/seek/scrubby.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/examples/seek/scrubby.c b/tests/examples/seek/scrubby.c
index ac5720b5e..9e204db40 100644
--- a/tests/examples/seek/scrubby.c
+++ b/tests/examples/seek/scrubby.c
@@ -111,11 +111,12 @@ static GstElement *
make_playerbin_pipeline (const gchar * location)
{
GstElement *player;
+ const gchar *uri = g_filename_to_uri (location, NULL, NULL);
player = gst_element_factory_make ("playbin", "player");
g_assert (player);
- g_object_set (G_OBJECT (player), "uri", location, NULL);
+ g_object_set (G_OBJECT (player), "uri", uri, NULL);
return player;
}