rtspsrc: Fix crash when is-live=false
authorSeungha Yang <seungha@centricular.com>
Tue, 4 Jul 2023 14:11:53 +0000 (23:11 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 5 Jul 2023 09:17:14 +0000 (09:17 +0000)
commit4bd7992d1422ea0cfe28e45c4e238fad6634872b
tree310c5d5c4eaa27d82d97467a89643eebaab71ca4
parent084efebb2a12bb64cac752106f495299a7fdfa2c
rtspsrc: Fix crash when is-live=false

The pad's parent (i.e., rtspsrc) can be nullptr since we add pads
later.

Co-authored-by: Jan Schmidt <jan@centricular.com>
Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2751
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4971>
subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c