From e14fbcc070c71036eea4bbcc8c56e31ae360efe9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 29 Oct 2011 08:25:54 +0200 Subject: caps: update for new API --- gst/bayer/gstrgb2bayer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/bayer/gstrgb2bayer.c b/gst/bayer/gstrgb2bayer.c index 5cc34a314..69aedb908 100644 --- a/gst/bayer/gstrgb2bayer.c +++ b/gst/bayer/gstrgb2bayer.c @@ -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); -- cgit v1.2.1