[longomatch] Allow '0' value for height and width.



commit bdcd2bd411c203d9b3643dd7c4971059f7d6c6e6
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat Jun 12 12:36:08 2010 +0200

    Allow '0' value for height and width.
    
    If the value is '0' that means this property won't be set in the source filter
    caps and van be used, for instance, to set only the height and get the widht
    automatically from the par.

 libcesarplayer/src/gst-camera-capturer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libcesarplayer/src/gst-camera-capturer.c b/libcesarplayer/src/gst-camera-capturer.c
index 763b350..2cc0d00 100644
--- a/libcesarplayer/src/gst-camera-capturer.c
+++ b/libcesarplayer/src/gst-camera-capturer.c
@@ -854,10 +854,10 @@ gst_camera_capturer_class_init (GstCameraCapturerClass * klass)
   /* Properties */
   g_object_class_install_property (object_class, PROP_OUTPUT_HEIGHT,
       g_param_spec_uint ("output_height", NULL,
-          NULL, 180, 5600, 576, G_PARAM_READWRITE));
+          NULL, 0, 5600, 576, G_PARAM_READWRITE));
   g_object_class_install_property (object_class, PROP_OUTPUT_WIDTH,
       g_param_spec_uint ("output_width", NULL,
-          NULL, 180, 5600, 720, G_PARAM_READWRITE));
+          NULL, 0, 5600, 720, G_PARAM_READWRITE));
   g_object_class_install_property (object_class, PROP_VIDEO_BITRATE,
       g_param_spec_uint ("video_bitrate", NULL,
           NULL, 100, G_MAXUINT, 1000, G_PARAM_READWRITE));



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