From f6c604331757f953c3d437153aa7d7e0ae6500b1 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 23 Apr 2014 13:25:44 +0200 Subject: [PATCH] validate: Minor printing cleanup --- validate/gst/validate/gst-validate-report.c | 4 ++-- validate/gst/validate/gst-validate-scenario.c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/validate/gst/validate/gst-validate-report.c b/validate/gst/validate/gst-validate-report.c index 51a33ca09b..065c10e56d 100644 --- a/validate/gst/validate/gst-validate-report.c +++ b/validate/gst/validate/gst-validate-report.c @@ -396,9 +396,9 @@ gst_validate_printf_valist (gpointer source, action->action_number, GST_TIME_ARGS (action->playback_time), action->repeat); } else if (GST_IS_OBJECT (source)) { - g_string_printf (string, "%s: ", GST_OBJECT_NAME (source)); + g_string_printf (string, "\n%s --> ", GST_OBJECT_NAME (source)); } else if (G_IS_OBJECT (source)) { - g_string_printf (string, "<%s@%p>: ", G_OBJECT_TYPE_NAME (source), source); + g_string_printf (string, "\n<%s@%p> --> ", G_OBJECT_TYPE_NAME (source), source); } } diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c index 693e5c2f0c..44e5d1b3bc 100644 --- a/validate/gst/validate/gst-validate-scenario.c +++ b/validate/gst/validate/gst-validate-scenario.c @@ -248,7 +248,7 @@ _execute_seek (GstValidateScenario * scenario, GstValidateAction * action) gst_validate_action_get_clocktime (scenario, action, "stop", &stop); gst_validate_printf (action, "seeking to: %" GST_TIME_FORMAT - " stop: %" GST_TIME_FORMAT " Rate %lf", + " stop: %" GST_TIME_FORMAT " Rate %lf\n", GST_TIME_ARGS (start), GST_TIME_ARGS (stop), rate); seek = gst_event_new_seek (rate, format, flags, start_type, start, @@ -278,7 +278,7 @@ _pause_action_restore_playing (GstValidateScenario * scenario) GstElement *pipeline = scenario->pipeline; - gst_validate_printf (scenario, "\n==== Back to playing ===\n"); + gst_validate_printf (scenario, "Back to playing\n"); if (gst_element_set_state (pipeline, GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) { @@ -296,7 +296,7 @@ _execute_pause (GstValidateScenario * scenario, GstValidateAction * action) gdouble duration = 0; gst_structure_get_double (action->structure, "duration", &duration); - gst_validate_printf (action, "pausing for %" GST_TIME_FORMAT, + gst_validate_printf (action, "pausing for %" GST_TIME_FORMAT "\n", GST_TIME_ARGS (duration * GST_SECOND)); GST_DEBUG ("Pausing for %" GST_TIME_FORMAT, @@ -319,7 +319,7 @@ _execute_pause (GstValidateScenario * scenario, GstValidateAction * action) static gboolean _execute_play (GstValidateScenario * scenario, GstValidateAction * action) { - gst_validate_printf (action, "Playing back"); + gst_validate_printf (action, "Playing back\n"); GST_DEBUG ("Playing back"); @@ -339,7 +339,7 @@ _execute_stop (GstValidateScenario * scenario, GstValidateAction * action) { GstBus *bus = gst_element_get_bus (scenario->pipeline); - gst_validate_printf (action, "Stoping pipeline"); + gst_validate_printf (action, "Stoping pipeline\n"); gst_bus_post (bus, gst_message_new_request_state (GST_OBJECT_CAST (scenario), @@ -351,7 +351,7 @@ _execute_stop (GstValidateScenario * scenario, GstValidateAction * action) static gboolean _execute_eos (GstValidateScenario * scenario, GstValidateAction * action) { - gst_validate_printf (action, "sending EOS at %" GST_TIME_FORMAT, + gst_validate_printf (action, "sending EOS at %" GST_TIME_FORMAT "\n", GST_TIME_ARGS (action->playback_time)); GST_DEBUG ("Sending eos to pipeline at %" GST_TIME_FORMAT, @@ -523,7 +523,7 @@ _execute_switch_track (GstValidateScenario * scenario, } } - gst_validate_printf (action, "Switching to track number: %i", index); + gst_validate_printf (action, "Switching to track number: %i\n", index); pad = find_nth_sink_pad (input_selector, index); g_object_set (input_selector, "active-pad", pad, NULL); gst_object_unref (pad); @@ -690,7 +690,7 @@ stop_waiting (GstValidateScenario * scenario) priv->wait_id = 0; _add_get_position_source (scenario); - gst_validate_printf (scenario, "\n==== Stop waiting ===\n"); + gst_validate_printf (scenario, "Stop waiting\n"); return G_SOURCE_REMOVE; }