tests: deal with lists of formats

This commit is contained in:
Wim Taymans 2012-03-08 10:59:48 +01:00
parent 37541750d2
commit 591ff74d7d

View file

@ -45,6 +45,7 @@ videoscale_get_allowed_caps_for_method (int method)
gst_object_unref (pad);
gst_object_unref (scale);
caps = gst_caps_normalize (caps);
n = gst_caps_get_size (caps);
ret = g_new0 (GstCaps *, n + 1);