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:
parent
81782144d9
commit
8d65deb7ed
@ -828,7 +828,7 @@ GST_START_TEST (test_autoplug_decoder_sink_combination)
|
|||||||
{
|
{
|
||||||
GstElement *playbin;
|
GstElement *playbin;
|
||||||
GstElement *decoder = NULL;
|
GstElement *decoder = NULL;
|
||||||
GstElement *sink;
|
GstElement *sink, *asink;
|
||||||
gchar *path, *uri;
|
gchar *path, *uri;
|
||||||
|
|
||||||
fail_unless (gst_element_register (NULL, "faketheoradec1",
|
fail_unless (gst_element_register (NULL, "faketheoradec1",
|
||||||
@ -846,6 +846,10 @@ GST_START_TEST (test_autoplug_decoder_sink_combination)
|
|||||||
|
|
||||||
playbin = create_playbin (uri, FALSE);
|
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_signal_connect (playbin, "deep-notify::caps",
|
||||||
G_CALLBACK (pipeline_deep_notify_caps_cb), &decoder);
|
G_CALLBACK (pipeline_deep_notify_caps_cb), &decoder);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user