gstplay: fix segmentation fault caused by subtitle info update
authorElliot Chen <elliot.chen@nxp.com>
Thu, 10 Nov 2022 07:07:20 +0000 (15:07 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 10 Nov 2022 14:07:39 +0000 (14:07 +0000)
commit4020542b3ca2ed320dd9816546df9d14394a213a
tree39a200ce11e40ad752f08af36809bccf76c8c10e
parent60a7366d271b5e6a785eedbcfcab7f15c85e0dda
gstplay: fix segmentation fault caused by subtitle info update

For subtitle stream played by subrui, gstplay will update subtitle
information before select the stream by using playbin3. Need check
the subtitle_sid value to avoid segmentation fault.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3383>
subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay.c