summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <ts.santos@sisa.samsung.com>2014-02-24 11:06:28 -0300
committerThiago Santos <ts.santos@sisa.samsung.com>2014-02-24 11:07:10 -0300
commit2662f0f72a9ba02026bc2667ccfee4dc625f0572 (patch)
tree644e3e917df13dc6b57c0e663ea294baa2db7508
parentb3a72429107b5f9dea2633735314c07b065f233a (diff)
downloadgstreamer-plugins-bad-2662f0f72a9ba02026bc2667ccfee4dc625f0572.tar.gz
examples: gst-camerabin2-test: new 1.x raw caps format
Remove -yuv and -rgb from video/x-raw as those are from the old 0.10 version
-rw-r--r--tests/examples/camerabin2/gst-camerabin2-test.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/tests/examples/camerabin2/gst-camerabin2-test.c b/tests/examples/camerabin2/gst-camerabin2-test.c
index 68670e346..dfbd05569 100644
--- a/tests/examples/camerabin2/gst-camerabin2-test.c
+++ b/tests/examples/camerabin2/gst-camerabin2-test.c
@@ -752,31 +752,20 @@ setup_pipeline (void)
if (mode == MODE_VIDEO) {
GstCaps *caps = NULL;
if (view_framerate_num > 0)
- caps = gst_caps_new_full (gst_structure_new ("video/x-raw-yuv",
- "width", G_TYPE_INT, image_width,
- "height", G_TYPE_INT, image_height,
- "framerate", GST_TYPE_FRACTION, view_framerate_num,
- view_framerate_den, NULL),
- gst_structure_new ("video/x-raw-rgb",
+ caps = gst_caps_new_full (gst_structure_new ("video/x-raw",
"width", G_TYPE_INT, image_width,
"height", G_TYPE_INT, image_height,
"framerate", GST_TYPE_FRACTION, view_framerate_num,
view_framerate_den, NULL), NULL);
else
- caps = gst_caps_new_full (gst_structure_new ("video/x-raw-yuv",
- "width", G_TYPE_INT, image_width,
- "height", G_TYPE_INT, image_height, NULL),
- gst_structure_new ("video/x-raw-rgb",
+ caps = gst_caps_new_full (gst_structure_new ("video/x-raw",
"width", G_TYPE_INT, image_width,
"height", G_TYPE_INT, image_height, NULL), NULL);
g_object_set (camerabin, "video-capture-caps", caps, NULL);
gst_caps_unref (caps);
} else {
- GstCaps *caps = gst_caps_new_full (gst_structure_new ("video/x-raw-yuv",
- "width", G_TYPE_INT, image_width,
- "height", G_TYPE_INT, image_height, NULL),
- gst_structure_new ("video/x-raw-rgb",
+ GstCaps *caps = gst_caps_new_full (gst_structure_new ("video/x-raw",
"width", G_TYPE_INT, image_width,
"height", G_TYPE_INT, image_height, NULL), NULL);