mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
playsink: Prevent NULL pointer dereference in last change
This commit is contained in:
parent
a038e5e583
commit
7ab77c6b32
1 changed files with 4 additions and 2 deletions
|
@ -3115,8 +3115,10 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
|
|||
GST_DEBUG_OBJECT (playsink, "ghosting video sinkpad");
|
||||
gst_pad_unlink (playsink->video_srcpad_stream_synchronizer,
|
||||
playsink->videochain->sinkpad);
|
||||
gst_pad_unlink (playsink->videodeinterlacechain->srcpad,
|
||||
playsink->videochain->sinkpad);
|
||||
if (playsink->videodeinterlacechain
|
||||
&& playsink->videodeinterlacechain->srcpad)
|
||||
gst_pad_unlink (playsink->videodeinterlacechain->srcpad,
|
||||
playsink->videochain->sinkpad);
|
||||
if (need_deinterlace)
|
||||
gst_pad_link_full (playsink->videodeinterlacechain->srcpad,
|
||||
playsink->videochain->sinkpad, GST_PAD_LINK_CHECK_NOTHING);
|
||||
|
|
Loading…
Reference in a new issue