caps: update for new API

This commit is contained in:
Wim Taymans 2011-10-29 08:25:54 +02:00
parent 10d31a588d
commit e14fbcc070

View file

@ -136,9 +136,9 @@ gst_rgb2bayer_transform_caps (GstBaseTransform * trans,
structure = gst_caps_get_structure (caps, 0);
if (direction == GST_PAD_SRC) {
newcaps = gst_caps_new_simple ("video/x-raw", NULL);
newcaps = gst_caps_new_empty_simple ("video/x-raw");
} else {
newcaps = gst_caps_new_simple ("video/x-raw-bayer", NULL);
newcaps = gst_caps_new_empty_simple ("video/x-raw-bayer");
}
new_structure = gst_caps_get_structure (newcaps, 0);