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.
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;
}