From 3afa2c3a25c19e4938516e03468e397575802ef0 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 25 Nov 2010 20:55:36 -0300 Subject: [PATCH] camerabin2: v4l2camerasrc: Fix property warning Avoid setting a property that doesn't exist. --- gst/camerabin2/gstv4l2camerasrc.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gst/camerabin2/gstv4l2camerasrc.c b/gst/camerabin2/gstv4l2camerasrc.c index 6cd2eb1..29ee132 100644 --- a/gst/camerabin2/gstv4l2camerasrc.c +++ b/gst/camerabin2/gstv4l2camerasrc.c @@ -865,14 +865,11 @@ configure_format (GstV4l2CameraSrc * self, GstCaps * caps) { GstBaseCameraSrc *bcamsrc = GST_BASE_CAMERA_SRC (self); GstStructure *st; - gint width, height; st = gst_caps_get_structure (caps, 0); - gst_structure_get_int (st, "width", &width); - gst_structure_get_int (st, "height", &height); - - g_object_set (self, "width", width, "height", height, NULL); + gst_structure_get_int (st, "width", &bcamsrc->width); + gst_structure_get_int (st, "height", &bcamsrc->height); if (gst_structure_has_field_typed (st, "framerate", GST_TYPE_FRACTION)) { gst_structure_get_fraction (st, "framerate", &bcamsrc->fps_n, -- 2.7.4