Fix divide by zero bug when rate==0

Original commit message from CVS:
Fix divide by zero bug when rate==0
This commit is contained in:
David Schleef 2002-11-09 01:21:00 +00:00
parent 51bfcddf26
commit 60ad16aadf

View file

@ -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);