summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis.bg@samsung.com>2015-04-13 17:35:36 +0100
committerLuis de Bethencourt <luis.bg@samsung.com>2015-04-13 17:39:56 +0100
commit003a0a0ca7550b3dbac4e7931fd97c0fdfd6135e (patch)
tree0d6f6eb1c6a2bde97ff78951d56844ab9da64d07 /tests
parent8dc688b039df3025c6807628793a9cc1cc99a067 (diff)
examples: keep scrubby command consistent
scrubby has two options, wav and playbin. Wav takes a file location so make the playbin option take a file location as well instead of an uri. This also means the usage help string will be correct for the playbin option.
Diffstat (limited to 'tests')
-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;
}