parsebin: Avoid crash with unknown streams
authorEdward Hervey <edward@centricular.com>
Mon, 1 Aug 2022 15:25:56 +0000 (17:25 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 1 Aug 2022 22:52:42 +0000 (22:52 +0000)
commitf7e75a0208ba3fe5dbccf16511bfec29f0ba2346
treef380232c8edcd6f746d304a1bd1e3e9d583447e5
parente9a642feb87cd9d56c839c79e8ad7bba01b14112
parsebin: Avoid crash with unknown streams

With the new addition of handling unknown sream types we *could* end up with a
chain which doesn't have a current_pad (it's an intermediary one)

Fixes #1287

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2822>
subprojects/gst-plugins-base/gst/playback/gstparsebin.c