dc1394: list valid iso-speeds in help and validate speeds in set_property.

This commit is contained in:
Tristan Matthews 2009-12-08 16:36:16 -05:00 committed by Tim-Philipp Müller
parent f8c1709b5f
commit 846c2db926

View file

@ -156,8 +156,8 @@ gst_dc1394_class_init (GstDc1394Class * klass)
g_object_class_install_property (G_OBJECT_CLASS (klass), g_object_class_install_property (G_OBJECT_CLASS (klass),
PROP_ISO_SPEED, g_param_spec_int ("iso-speed", PROP_ISO_SPEED, g_param_spec_int ("iso-speed",
"The iso bandwidth in Mbps {100, 200, 400, 800, 1600, 3200}", "The iso bandwidth in Mbps (100, 200, 400, 800, 1600, 3200)",
"The iso bandwidth in Mbps {100, 200, 400, 800, 1600, 3200}", 100, "The iso bandwidth in Mbps (100, 200, 400, 800, 1600, 3200)", 100,
3200, 400, G_PARAM_READWRITE)); 3200, 400, G_PARAM_READWRITE));
gstbasesrc_class->get_caps = gst_dc1394_getcaps; gstbasesrc_class->get_caps = gst_dc1394_getcaps;
@ -239,7 +239,8 @@ gst_dc1394_set_property (GObject * object, guint prop_id,
src->iso_speed = g_value_get_int (value); src->iso_speed = g_value_get_int (value);
break; break;
default: default:
g_warning ("Invalid iso speed %d, ignoring", g_value_get_int (value)); g_warning ("%s: Invalid iso speed %d, ignoring",
GST_ELEMENT_NAME (src), g_value_get_int (value));
break; break;
} }
default: default: