encoding-profile.c: In function ‘get_profile_format_from_possible_factory_name’:
encoding-profile.c:1532:6: error: ‘fact’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
if (fact)
^
encoding-profile.c: In function ‘profile_from_string’:
encoding-profile.c:1720:6: error: ‘res’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
if (profile)
^
cc1: all warnings being treated as errors
static GstEncodingProfile *
combo_search (const gchar * pname)
{
- GstEncodingProfile *res;
+ GstEncodingProfile *res = NULL;
gchar **split;
gint split_length;
GList *tmp;
GstCaps *caps = NULL, *tmpcaps = gst_caps_from_string (factory_desc);
GstStructure *tmpstruct;
- GstElementFactory *fact;
+ GstElementFactory *fact = NULL;
*new_factory_name = NULL;
if (gst_caps_get_size (tmpcaps) != 1)