mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
rtph263ppay: fix caps leak
This commit is contained in:
parent
4d51c68fc0
commit
2a7a38ca07
1 changed files with 2 additions and 1 deletions
|
@ -236,7 +236,7 @@ static GstCaps *
|
||||||
gst_rtp_h263p_pay_sink_getcaps (GstBaseRTPPayload * payload, GstPad * pad)
|
gst_rtp_h263p_pay_sink_getcaps (GstBaseRTPPayload * payload, GstPad * pad)
|
||||||
{
|
{
|
||||||
GstRtpH263PPay *rtph263ppay;
|
GstRtpH263PPay *rtph263ppay;
|
||||||
GstCaps *caps = gst_caps_new_empty ();
|
GstCaps *caps = NULL;
|
||||||
GstCaps *peercaps = NULL;
|
GstCaps *peercaps = NULL;
|
||||||
GstCaps *intersect = NULL;
|
GstCaps *intersect = NULL;
|
||||||
guint i;
|
guint i;
|
||||||
|
@ -256,6 +256,7 @@ gst_rtp_h263p_pay_sink_getcaps (GstBaseRTPPayload * payload, GstPad * pad)
|
||||||
if (gst_caps_is_empty (intersect))
|
if (gst_caps_is_empty (intersect))
|
||||||
return intersect;
|
return intersect;
|
||||||
|
|
||||||
|
caps = gst_caps_new_empty ();
|
||||||
for (i = 0; i < gst_caps_get_size (intersect); i++) {
|
for (i = 0; i < gst_caps_get_size (intersect); i++) {
|
||||||
GstStructure *s = gst_caps_get_structure (intersect, i);
|
GstStructure *s = gst_caps_get_structure (intersect, i);
|
||||||
const gchar *encoding_name = gst_structure_get_string (s, "encoding-name");
|
const gchar *encoding_name = gst_structure_get_string (s, "encoding-name");
|
||||||
|
|
Loading…
Reference in a new issue