ges-launch: don't print random position/duration values at startup
authorTim-Philipp Müller <tim@centricular.com>
Tue, 9 Jun 2015 11:23:59 +0000 (12:23 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 9 Jun 2015 11:23:59 +0000 (12:23 +0100)
tools/ges-validate.c

index eab7e30..cab2638 100644 (file)
@@ -132,7 +132,7 @@ ges_validate_print_action_types (const gchar ** types, gint num_types)
 static gboolean
 _print_position (GstElement * pipeline)
 {
-  gint64 position, duration;
+  gint64 position = 0, duration = -1;
 
   if (pipeline) {
     gst_element_query_position (GST_ELEMENT (pipeline), GST_FORMAT_TIME,