tests: fix for caps _normalize changes
This commit is contained in:
parent
25137962ad
commit
cc80ab6b2e
@ -88,7 +88,7 @@ clear_caps (GstCaps * caps, GstCaps * rescaps)
|
|||||||
static GstCaps *
|
static GstCaps *
|
||||||
get_all_caps (GList * elements, GstPadDirection direction)
|
get_all_caps (GList * elements, GstPadDirection direction)
|
||||||
{
|
{
|
||||||
GstCaps *res = NULL, *res2;
|
GstCaps *res;
|
||||||
GList *tmp;
|
GList *tmp;
|
||||||
|
|
||||||
res = gst_caps_new_empty ();
|
res = gst_caps_new_empty ();
|
||||||
@ -106,9 +106,9 @@ get_all_caps (GList * elements, GstPadDirection direction)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
res2 = gst_caps_normalize (res);
|
res = gst_caps_normalize (res);
|
||||||
gst_caps_unref (res);
|
|
||||||
return res2;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -278,8 +278,7 @@ beach:
|
|||||||
if (!hadcodecs)
|
if (!hadcodecs)
|
||||||
gst_caps_unref (codecformats);
|
gst_caps_unref (codecformats);
|
||||||
|
|
||||||
tmpcaps = gst_caps_normalize (res);
|
res = gst_caps_normalize (res);
|
||||||
gst_caps_unref (res);
|
|
||||||
|
|
||||||
return tmpcaps;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user