playbin-complex: Set fakesink as audio-sink to not use a real audio device

https://bugzilla.gnome.org/show_bug.cgi?id=705157
This commit is contained in:
Sebastian Dröge 2013-08-13 13:43:32 +02:00
parent 81782144d9
commit 8d65deb7ed

View file

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