mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
hlsdemux: Fix NULL pointer dereference when checking if there is a next fragment
Thanks to Aleksandr <tumaleksandr@yandex.ua> for reporting and suggesting the fix. https://bugzilla.gnome.org/show_bug.cgi?id=774287
This commit is contained in:
parent
ba2908aa2c
commit
cff42b2b40
1 changed files with 1 additions and 1 deletions
|
@ -711,7 +711,7 @@ gst_m3u8_has_next_fragment (GstM3U8 * m3u8, gboolean forward)
|
|||
cur = m3u8_find_next_fragment (m3u8, forward);
|
||||
}
|
||||
|
||||
have_next = (forward && cur->next) || (!forward && cur->prev);
|
||||
have_next = cur && ((forward && cur->next) || (!forward && cur->prev));
|
||||
|
||||
GST_M3U8_UNLOCK (m3u8);
|
||||
|
||||
|
|
Loading…
Reference in a new issue