mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
tests: fix for caps _normalize changes
This commit is contained in:
parent
25137962ad
commit
cc80ab6b2e
1 changed files with 6 additions and 7 deletions
|
@ -88,7 +88,7 @@ clear_caps (GstCaps * caps, GstCaps * rescaps)
|
|||
static GstCaps *
|
||||
get_all_caps (GList * elements, GstPadDirection direction)
|
||||
{
|
||||
GstCaps *res = NULL, *res2;
|
||||
GstCaps *res;
|
||||
GList *tmp;
|
||||
|
||||
res = gst_caps_new_empty ();
|
||||
|
@ -106,9 +106,9 @@ get_all_caps (GList * elements, GstPadDirection direction)
|
|||
}
|
||||
}
|
||||
|
||||
res2 = gst_caps_normalize (res);
|
||||
gst_caps_unref (res);
|
||||
return res2;
|
||||
res = gst_caps_normalize (res);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -278,8 +278,7 @@ beach:
|
|||
if (!hadcodecs)
|
||||
gst_caps_unref (codecformats);
|
||||
|
||||
tmpcaps = gst_caps_normalize (res);
|
||||
gst_caps_unref (res);
|
||||
res = gst_caps_normalize (res);
|
||||
|
||||
return tmpcaps;
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue