validate: Minor printing cleanup

This commit is contained in:
Thibault Saunier 2014-04-23 13:25:44 +02:00
parent 2d7d03d2f7
commit f6c6043317
2 changed files with 10 additions and 10 deletions

View file

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

View file

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