mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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>
This commit is contained in:
parent
60a7366d27
commit
4020542b3c
1 changed files with 1 additions and 1 deletions
|
@ -1756,7 +1756,7 @@ gst_play_subtitle_info_update (GstPlay * self, GstPlayStreamInfo * stream_info)
|
|||
|
||||
g_object_get (G_OBJECT (self->playbin), "current-suburi", &suburi, NULL);
|
||||
if (suburi) {
|
||||
if (self->use_playbin3) {
|
||||
if (self->use_playbin3 && self->subtitle_sid) {
|
||||
if (g_str_equal (self->subtitle_sid, stream_info->stream_id))
|
||||
info->language = g_path_get_basename (suburi);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue