mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 23:46:45 +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);
|
structure = gst_caps_get_structure (caps, 0);
|
||||||
|
|
||||||
if (direction == GST_PAD_SRC) {
|
if (direction == GST_PAD_SRC) {
|
||||||
newcaps = gst_caps_new_simple ("video/x-raw", NULL);
|
newcaps = gst_caps_new_empty_simple ("video/x-raw");
|
||||||
} else {
|
} 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);
|
new_structure = gst_caps_get_structure (newcaps, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue