mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 19:25:18 +00:00
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
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue