stress-playbin: print the current uri
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 25 Feb 2009 11:07:43 +0000 (12:07 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 25 Feb 2009 11:07:43 +0000 (12:07 +0100)
Print the current uri so that we can more easily see what uri caused a crash or
error.

tests/icles/stress-playbin.c

index 16c628b..2f90d35 100644 (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);