mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
playsink: gen_video_deinterlace_chain() always returns a bin, no need to check that
This commit is contained in:
parent
d5499f5556
commit
fe856a3f7c
1 changed files with 5 additions and 8 deletions
|
@ -2244,16 +2244,13 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (playsink, "adding video deinterlace chain");
|
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);
|
add_chain (GST_PLAY_CHAIN (playsink->videodeinterlacechain), TRUE);
|
||||||
activate_chain (GST_PLAY_CHAIN (playsink->videodeinterlacechain), TRUE);
|
activate_chain (GST_PLAY_CHAIN (playsink->videodeinterlacechain), TRUE);
|
||||||
|
|
||||||
gst_pad_link_full (playsink->video_srcpad_stream_synchronizer,
|
gst_pad_link_full (playsink->video_srcpad_stream_synchronizer,
|
||||||
playsink->videodeinterlacechain->sinkpad,
|
playsink->videodeinterlacechain->sinkpad, GST_PAD_LINK_CHECK_NOTHING);
|
||||||
GST_PAD_LINK_CHECK_NOTHING);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (playsink->videodeinterlacechain) {
|
if (playsink->videodeinterlacechain) {
|
||||||
add_chain (GST_PLAY_CHAIN (playsink->videodeinterlacechain), FALSE);
|
add_chain (GST_PLAY_CHAIN (playsink->videodeinterlacechain), FALSE);
|
||||||
|
|
Loading…
Reference in a new issue