From 60ad16aadf08274f25c2e1edb5951474b634f80a Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sat, 9 Nov 2002 01:21:00 +0000 Subject: [PATCH] Fix divide by zero bug when rate==0 Original commit message from CVS: Fix divide by zero bug when rate==0 --- gst/videotestsrc/gstvideotestsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/videotestsrc/gstvideotestsrc.c b/gst/videotestsrc/gstvideotestsrc.c index 612e376869..c1851dcb08 100644 --- a/gst/videotestsrc/gstvideotestsrc.c +++ b/gst/videotestsrc/gstvideotestsrc.c @@ -152,7 +152,7 @@ gst_videotestsrc_class_init (GstVideotestsrcClass * klass) NULL, G_PARAM_READWRITE)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_RATE, g_param_spec_int ("rate", "Rate", "Frame rate", - 0, 100, 30, G_PARAM_READWRITE)); + 1, 100, 30, G_PARAM_READWRITE)); parent_class = g_type_class_ref (GST_TYPE_ELEMENT);