mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
stress-playbin: print the current uri
Print the current uri so that we can more easily see what uri caused a crash or error.
This commit is contained in:
parent
4d30e3ff2c
commit
7cdf04fe21
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ play_file (const gchar * bin, const gint delay, const gchar * uri)
|
|||
play = gst_element_factory_make (bin, "playbin");
|
||||
|
||||
g_object_set (play, "uri", uri, NULL);
|
||||
g_printerr ("Playing %s\n", uri);
|
||||
sret = gst_element_set_state (play, GST_STATE_PLAYING);
|
||||
if (sret != GST_STATE_CHANGE_ASYNC) {
|
||||
g_printerr ("ERROR: state change failed, sret=%d\n", sret);
|
||||
|
|
Loading…
Reference in a new issue