mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
caps: update for new API
This commit is contained in:
parent
10d31a588d
commit
e14fbcc070
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue