playbin: If we had a previous autoplugged sink, try to reuse it
https://bugzilla.gnome.org/show_bug.cgi?id=701997
This commit is contained in:
parent
b3a15872b7
commit
7c28c180ec
@ -4795,8 +4795,14 @@ activate_group (GstPlayBin * playbin, GstSourceGroup * group, GstState target)
|
||||
/* First set up the custom sources */
|
||||
if (playbin->audio_sink)
|
||||
group->audio_sink = gst_object_ref (playbin->audio_sink);
|
||||
else
|
||||
group->audio_sink =
|
||||
gst_play_sink_get_sink (playbin->playsink, GST_PLAY_SINK_TYPE_AUDIO);
|
||||
if (playbin->video_sink)
|
||||
group->video_sink = gst_object_ref (playbin->video_sink);
|
||||
else
|
||||
group->video_sink =
|
||||
gst_play_sink_get_sink (playbin->playsink, GST_PLAY_SINK_TYPE_VIDEO);
|
||||
|
||||
g_list_free (group->stream_changed_pending);
|
||||
group->stream_changed_pending = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user