mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 11:08:34 +00:00
deinterlace: Don't leak metas
There is no correlation between the frame being NULL and the metas not being present. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3319>
This commit is contained in:
parent
094d27585e
commit
aa61662632
1 changed files with 11 additions and 10 deletions
|
@ -781,16 +781,17 @@ gst_deinterlace_pop_history (GstDeinterlace * self)
|
||||||
static void
|
static void
|
||||||
gst_deinterlace_delete_meta_at (GstDeinterlace * self, gint idx)
|
gst_deinterlace_delete_meta_at (GstDeinterlace * self, gint idx)
|
||||||
{
|
{
|
||||||
if (self->field_history[idx].frame) {
|
GST_DEBUG_OBJECT (self, "idx:%d frame %p", idx,
|
||||||
if (self->field_history[idx].tc) {
|
self->field_history[idx].frame);
|
||||||
gst_video_time_code_free (self->field_history[idx].tc);
|
|
||||||
self->field_history[idx].tc = NULL;
|
if (self->field_history[idx].tc) {
|
||||||
}
|
gst_video_time_code_free (self->field_history[idx].tc);
|
||||||
if (self->field_history[idx].caption) {
|
self->field_history[idx].tc = NULL;
|
||||||
g_free (self->field_history[idx].caption->data);
|
}
|
||||||
g_free (self->field_history[idx].caption);
|
if (self->field_history[idx].caption) {
|
||||||
self->field_history[idx].caption = NULL;
|
g_free (self->field_history[idx].caption->data);
|
||||||
}
|
g_free (self->field_history[idx].caption);
|
||||||
|
self->field_history[idx].caption = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue