encoding-profile: release additional obtained caps reference
This commit is contained in:
parent
6eee006e82
commit
43b0c5d258
@ -358,7 +358,7 @@ serialize_stream_profiles (GKeyFile * out, GstEncodingProfile * sprof,
|
|||||||
{
|
{
|
||||||
gchar *sprofgroupname;
|
gchar *sprofgroupname;
|
||||||
gchar *tmpc;
|
gchar *tmpc;
|
||||||
const GstCaps *format, *restriction;
|
GstCaps *format, *restriction;
|
||||||
const gchar *preset, *name, *description;
|
const gchar *preset, *name, *description;
|
||||||
|
|
||||||
sprofgroupname = g_strdup_printf ("streamprofile-%s-%d", profilename, id);
|
sprofgroupname = g_strdup_printf ("streamprofile-%s-%d", profilename, id);
|
||||||
@ -407,6 +407,10 @@ serialize_stream_profiles (GKeyFile * out, GstEncodingProfile * sprof,
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_free (sprofgroupname);
|
g_free (sprofgroupname);
|
||||||
|
if (format)
|
||||||
|
gst_caps_unref (format);
|
||||||
|
if (restriction)
|
||||||
|
gst_caps_unref (restriction);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -449,7 +453,7 @@ serialize_encoding_profile (GKeyFile * out, GstEncodingProfile * prof)
|
|||||||
const GList *tmp;
|
const GList *tmp;
|
||||||
guint i;
|
guint i;
|
||||||
const gchar *profname, *profdesc, *profpreset, *proftype;
|
const gchar *profname, *profdesc, *profpreset, *proftype;
|
||||||
const GstCaps *profformat;
|
GstCaps *profformat;
|
||||||
|
|
||||||
profname = gst_encoding_profile_get_name (prof);
|
profname = gst_encoding_profile_get_name (prof);
|
||||||
profdesc = gst_encoding_profile_get_description (prof);
|
profdesc = gst_encoding_profile_get_description (prof);
|
||||||
@ -495,6 +499,8 @@ serialize_encoding_profile (GKeyFile * out, GstEncodingProfile * prof)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (profformat)
|
||||||
|
gst_caps_unref (profformat);
|
||||||
g_free (profgroupname);
|
g_free (profgroupname);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user