G_OBJECT_CLASS (parent_class)->finalize (object);
}
-static const gchar *all_levels[] = {
+static const gchar all_levels[][4] = {
"1",
"1b",
"1.1",
"4.1",
"4.2",
"5",
- "5.1",
- NULL
+ "5.1"
};
static GstCaps *
g_value_init (&levels, GST_TYPE_LIST);
g_value_init (&val, G_TYPE_STRING);
- for (j = 0; all_levels[j]; j++) {
+ for (j = 0; j < G_N_ELEMENTS (all_levels); j++) {
g_value_set_static_string (&val, all_levels[j]);
gst_value_list_prepend_value (&levels, &val);
if (!strcmp (level, all_levels[j]))