camerabin2: v4l2camerasrc: Fix property warning

Avoid setting a property that doesn't exist.
This commit is contained in:
Thiago Santos 2010-11-25 20:55:36 -03:00
parent fcf80d0253
commit 3afa2c3a25

View file

@ -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,