mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
Don't crash on empty laces
https://bugzilla.gnome.org/show_bug.cgi?id=665224
This commit is contained in:
parent
20cdee6aa6
commit
b780639b2c
1 changed files with 5 additions and 0 deletions
|
@ -2903,6 +2903,11 @@ gst_matroska_demux_check_subtitle_buffer (GstElement * element,
|
|||
|
||||
data = gst_buffer_map (*buf, &size, NULL, GST_MAP_READ);
|
||||
|
||||
if (!data) {
|
||||
gst_buffer_unmap (*buf, data, -1);
|
||||
return GST_FLOW_OK;
|
||||
}
|
||||
|
||||
if (!sub_stream->invalid_utf8) {
|
||||
if (g_utf8_validate (data, size, NULL)) {
|
||||
goto next;
|
||||
|
|
Loading…
Reference in a new issue