ges-launch: Format the position printing as in gst-validate and friends

This commit is contained in:
Thibault Saunier 2014-01-09 16:31:01 +01:00 committed by Thibault Saunier
parent 95126cd0ef
commit 1108a2c6ac

View file

@ -515,10 +515,9 @@ _print_position (void)
&position); &position);
gst_element_query_duration (GST_ELEMENT (pipeline), GST_FORMAT_TIME, gst_element_query_duration (GST_ELEMENT (pipeline), GST_FORMAT_TIME,
&duration); &duration);
g_print ("<Position: %" GST_TIME_FORMAT " / %" GST_TIME_FORMAT "/>\r",
GST_TIME_ARGS (position), GST_TIME_ARGS (duration)); g_print ("<position: %" GST_TIME_FORMAT " duration: %" GST_TIME_FORMAT
GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (pipeline), "/>\r", GST_TIME_ARGS (position), GST_TIME_ARGS (duration));
GST_DEBUG_GRAPH_SHOW_ALL, "ges-launch-position");
} }
return TRUE; return TRUE;