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:
Wim Taymans 2009-02-25 12:07:43 +01:00
parent 4d30e3ff2c
commit 7cdf04fe21

View file

@ -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);