From 8d65deb7edc5c894cca3e43a5d9f43d48add995e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 13 Aug 2013 13:43:32 +0200 Subject: [PATCH] playbin-complex: Set fakesink as audio-sink to not use a real audio device https://bugzilla.gnome.org/show_bug.cgi?id=705157 --- tests/check/elements/playbin-complex.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/check/elements/playbin-complex.c b/tests/check/elements/playbin-complex.c index a615c2d948..56a219dc1d 100644 --- a/tests/check/elements/playbin-complex.c +++ b/tests/check/elements/playbin-complex.c @@ -828,7 +828,7 @@ GST_START_TEST (test_autoplug_decoder_sink_combination) { GstElement *playbin; GstElement *decoder = NULL; - GstElement *sink; + GstElement *sink, *asink; gchar *path, *uri; fail_unless (gst_element_register (NULL, "faketheoradec1", @@ -846,6 +846,10 @@ GST_START_TEST (test_autoplug_decoder_sink_combination) playbin = create_playbin (uri, FALSE); + asink = gst_element_factory_make ("fakesink", NULL); + g_object_set (asink, "sync", TRUE, NULL); + g_object_set (playbin, "audio-sink", asink, NULL); + g_signal_connect (playbin, "deep-notify::caps", G_CALLBACK (pipeline_deep_notify_caps_cb), &decoder);