mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +00:00
h264parse: fix caps leak in renegotiation
This commit is contained in:
parent
ba22007e2f
commit
a06423efa4
1 changed files with 3 additions and 1 deletions
|
@ -395,7 +395,6 @@ gst_h264_parse_negotiate (GstH264Parse * h264parse, gint in_format,
|
||||||
/* fixate to avoid ambiguity with lists when parsing */
|
/* fixate to avoid ambiguity with lists when parsing */
|
||||||
caps = gst_caps_fixate (caps);
|
caps = gst_caps_fixate (caps);
|
||||||
gst_h264_parse_format_from_caps (caps, &format, &align);
|
gst_h264_parse_format_from_caps (caps, &format, &align);
|
||||||
gst_caps_unref (caps);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* default */
|
/* default */
|
||||||
|
@ -413,6 +412,9 @@ gst_h264_parse_negotiate (GstH264Parse * h264parse, gint in_format,
|
||||||
|
|
||||||
h264parse->transform = in_format != h264parse->format ||
|
h264parse->transform = in_format != h264parse->format ||
|
||||||
align == GST_H264_PARSE_ALIGN_AU;
|
align == GST_H264_PARSE_ALIGN_AU;
|
||||||
|
|
||||||
|
if (caps)
|
||||||
|
gst_caps_unref (caps);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstBuffer *
|
static GstBuffer *
|
||||||
|
|
Loading…
Reference in a new issue