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.
This commit is contained in:
Luis de Bethencourt 2015-04-13 17:35:36 +01:00
parent 8dc688b039
commit 003a0a0ca7

View file

@ -111,11 +111,12 @@ static GstElement *
make_playerbin_pipeline (const gchar * location) make_playerbin_pipeline (const gchar * location)
{ {
GstElement *player; GstElement *player;
const gchar *uri = g_filename_to_uri (location, NULL, NULL);
player = gst_element_factory_make ("playbin", "player"); player = gst_element_factory_make ("playbin", "player");
g_assert (player); g_assert (player);
g_object_set (G_OBJECT (player), "uri", location, NULL); g_object_set (G_OBJECT (player), "uri", uri, NULL);
return player; return player;
} }