[longomatch] Fix caps for the videorate filter



commit 77ee8e3f73e70c982d2a5695274557759a6ffb14
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Dec 22 12:32:29 2014 +0100

    Fix caps for the videorate filter

 libcesarplayer/gst-camera-capturer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libcesarplayer/gst-camera-capturer.c b/libcesarplayer/gst-camera-capturer.c
index 9f111d1..eccc093 100644
--- a/libcesarplayer/gst-camera-capturer.c
+++ b/libcesarplayer/gst-camera-capturer.c
@@ -311,8 +311,8 @@ gst_camera_capturer_create_converter_bin (GstCameraCapturer * gcc)
   videoscale = gst_element_factory_make ("videoscale", NULL);
   filter = gst_element_factory_make ("capsfilter", NULL);
   /* Set caps for the encoding resolution */
-  caps = gst_caps_new_simple ("video/x-raw-yuv", "framerate",
-      GST_TYPE_FRACTION, 25, 1, NULL);
+  caps = gst_caps_from_string ("video/x-raw-yuv, framerate=25/1;"
+      "video/x-raw-rgb, framerate=25/1");
   if (gcc->priv->output_width != 0) {
     gst_caps_set_simple (caps, "width", G_TYPE_INT, gcc->priv->output_width,
         NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]