summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis.bg@samsung.com>2015-04-13 16:35:36 (GMT)
committerLuis de Bethencourt <luis.bg@samsung.com>2015-04-13 16:39:56 (GMT)
commit003a0a0ca7550b3dbac4e7931fd97c0fdfd6135e (patch)
tree0d6f6eb1c6a2bde97ff78951d56844ab9da64d07
parent8dc688b039df3025c6807628793a9cc1cc99a067 (diff)
downloadgst-plugins-base-003a0a0ca7550b3dbac4e7931fd97c0fdfd6135e.tar.gz
gst-plugins-base-003a0a0ca7550b3dbac4e7931fd97c0fdfd6135e.tar.xz
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.
-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 ac5720b..9e204db 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;
}