summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@collabora.com>2013-07-17 22:48:17 -0400
committerThibault Saunier <thibault.saunier@collabora.com>2013-07-21 21:27:16 -0400
commitb5795da61c433c4fbb2b9860541d89e01f20d169 (patch)
treec62f9cc1fadf297e74937f37c0800693f8dcf07a
parent2e3a300aa6167c14f216e688c35eb81012a1df5f (diff)
tests: integration: Add some pipeline dumps
When we go to PLAYING, or when we get an error on the bus + Activate the hack so that we dump the pipeline on first buffer pushed by the smart adder
-rw-r--r--tests/check/ges/integration.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/check/ges/integration.c b/tests/check/ges/integration.c
index cecfd83..b9649a7 100644
--- a/tests/check/ges/integration.c
+++ b/tests/check/ges/integration.c
@@ -157,13 +157,13 @@ create_audio_video_profile (EncodingProfileName type)
}
/* This is used to specify a dot dumping after the target element started outputting buffers */
-static const gchar *target_element = NULL;
+static const gchar *target_element = "smart-mixer-mixer";
static GstPadProbeReturn
dump_to_dot (GstPad * pad, GstPadProbeInfo * info)
{
- GST_DEBUG_BIN_TO_DOT_FILE (GST_BIN (pipeline), GST_DEBUG_GRAPH_SHOW_ALL,
- "pipelinestate");
+ GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (pipeline),
+ GST_DEBUG_GRAPH_SHOW_ALL, "ges-integration-smart-mixer-push-buffer");
return (GST_PAD_PROBE_REMOVE);
}
@@ -190,6 +190,8 @@ my_bus_callback (GstBus * bus, GstMessage * message, gpointer data)
gchar *debug;
gst_message_parse_error (message, &err, &debug);
+ GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (pipeline),
+ GST_DEBUG_GRAPH_SHOW_ALL, "ges-integration-error");
fail_unless (FALSE, "Got an error on the bus: Source: %s, message: %s\n",
GST_MESSAGE_SRC_NAME (message), err ? err->message : "Uknown");
g_error_free (err);
@@ -312,6 +314,8 @@ check_timeline (GESTimeline * timeline)
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING);
gst_element_get_state (GST_ELEMENT (pipeline), NULL, NULL, -1);
+ GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (pipeline),
+ GST_DEBUG_GRAPH_SHOW_ALL, "ges-integration-playing");
if (seeks != NULL)
g_timeout_add (50, (GSourceFunc) get_position, NULL);