mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 21:01:14 +00:00
mpegtsdemux: Fix memory leaks when PUSI is missed due to packet loss
Fixes bug #573288.
This commit is contained in:
parent
38d3b76d1b
commit
38dd0f6410
1 changed files with 5 additions and 2 deletions
|
@ -137,7 +137,7 @@ gst_section_filter_push (GstSectionFilter * filter, gboolean pusi, /* deter
|
|||
filter->section_length &= 0x0fff;
|
||||
if (filter->section_length > 1021) {
|
||||
GST_DEBUG ("section length too big");
|
||||
return FALSE;
|
||||
goto failure;
|
||||
}
|
||||
gst_adapter_push (filter->adapter, buf);
|
||||
filter->last_continuity_counter = continuity_counter;
|
||||
|
@ -156,6 +156,9 @@ gst_section_filter_push (GstSectionFilter * filter, gboolean pusi, /* deter
|
|||
"new continuity counter but not pusi: %d",
|
||||
filter->last_continuity_counter, continuity_counter);
|
||||
gst_section_filter_clear (filter);
|
||||
return FALSE;
|
||||
goto failure;
|
||||
}
|
||||
failure:
|
||||
gst_buffer_unref (buf);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue