From c7255910108bbc9cafd6b0bc16c9ec0219c9b4cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 2 Jul 2013 14:01:52 +0200 Subject: [PATCH] playsink: Consider new audio/video sinks when reconfiguring --- gst/playback/gstplaysink.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index 16430ff4ab..79e0511f07 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -3051,7 +3051,9 @@ gst_play_sink_do_reconfigure (GstPlaySink * playsink) if (playsink->videochain) { /* try to reactivate the chain */ - if (!setup_video_chain (playsink, raw, async)) { + if ((playsink->video_sink + && playsink->video_sink != playsink->videochain->sink) + || !setup_video_chain (playsink, raw, async)) { if (playsink->video_sinkpad_stream_synchronizer) { gst_element_release_request_pad (GST_ELEMENT_CAST (playsink->stream_synchronizer), @@ -3233,7 +3235,9 @@ gst_play_sink_do_reconfigure (GstPlaySink * playsink) if (playsink->audiochain) { /* try to reactivate the chain */ - if (!setup_audio_chain (playsink, raw)) { + if ((playsink->audio_sink + && playsink->audio_sink != playsink->audiochain->sink) + || !setup_audio_chain (playsink, raw)) { GST_DEBUG_OBJECT (playsink, "removing current audio chain"); if (playsink->audio_tee_asrc) { gst_element_release_request_pad (playsink->audio_tee,