From fe856a3f7cc788e08d3d20a051919b264c4db0e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 31 Oct 2010 19:06:00 +0100 Subject: [PATCH] playsink: gen_video_deinterlace_chain() always returns a bin, no need to check that --- gst/playback/gstplaysink.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index 80374f6..170102b 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -2244,16 +2244,13 @@ gst_play_sink_reconfigure (GstPlaySink * playsink) GST_DEBUG_OBJECT (playsink, "adding video deinterlace chain"); - if (playsink->videodeinterlacechain) { - GST_DEBUG_OBJECT (playsink, "setting up deinterlacing chain"); + GST_DEBUG_OBJECT (playsink, "setting up deinterlacing chain"); - add_chain (GST_PLAY_CHAIN (playsink->videodeinterlacechain), TRUE); - activate_chain (GST_PLAY_CHAIN (playsink->videodeinterlacechain), TRUE); + add_chain (GST_PLAY_CHAIN (playsink->videodeinterlacechain), TRUE); + activate_chain (GST_PLAY_CHAIN (playsink->videodeinterlacechain), TRUE); - gst_pad_link_full (playsink->video_srcpad_stream_synchronizer, - playsink->videodeinterlacechain->sinkpad, - GST_PAD_LINK_CHECK_NOTHING); - } + gst_pad_link_full (playsink->video_srcpad_stream_synchronizer, + playsink->videodeinterlacechain->sinkpad, GST_PAD_LINK_CHECK_NOTHING); } else { if (playsink->videodeinterlacechain) { add_chain (GST_PLAY_CHAIN (playsink->videodeinterlacechain), FALSE); -- 2.7.4