From 846c2db92676324e284f50886e746ff44cc114e3 Mon Sep 17 00:00:00 2001 From: Tristan Matthews Date: Tue, 8 Dec 2009 16:36:16 -0500 Subject: [PATCH] dc1394: list valid iso-speeds in help and validate speeds in set_property. --- ext/dc1394/gstdc1394.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ext/dc1394/gstdc1394.c b/ext/dc1394/gstdc1394.c index f8e0f13a6a..035522d020 100644 --- a/ext/dc1394/gstdc1394.c +++ b/ext/dc1394/gstdc1394.c @@ -156,8 +156,8 @@ gst_dc1394_class_init (GstDc1394Class * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), 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}", 100, + "The iso bandwidth in Mbps (100, 200, 400, 800, 1600, 3200)", + "The iso bandwidth in Mbps (100, 200, 400, 800, 1600, 3200)", 100, 3200, 400, G_PARAM_READWRITE)); 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); break; 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; } default: