mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
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:
parent
8dc688b039
commit
003a0a0ca7
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue