Commit 4c8fd85e authored by Vladimir Eremeev's avatar Vladimir Eremeev Committed by Tim-Philipp Müller
Browse files

seek: set selected/default audio/video sinks on playbin and playbin2

https://bugzilla.gnome.org/show_bug.cgi?id=630322
parent 2b12546e
......@@ -930,6 +930,7 @@ static GstElement *
construct_playerbin (const gchar * name, const gchar * location)
{
GstElement *player;
GstElement *avsink;
player = gst_element_factory_make (name, "player");
g_assert (player);
......@@ -941,6 +942,14 @@ construct_playerbin (const gchar * name, const gchar * location)
/* force element seeking on this pipeline */
elem_seek = TRUE;
avsink = gst_element_factory_make_or_warn (opt_audiosink_str, "a_sink");
if (avsink)
g_object_set (player, "audio-sink", avsink, NULL);
avsink = gst_element_factory_make_or_warn (opt_videosink_str, "v_sink");
if (avsink)
g_object_set (player, "video-sink", avsink, NULL);
return player;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment