Skip to content
Snippets Groups Projects
Commit 7d105aa5 authored by Aaron Viets's avatar Aaron Viets
Browse files

lal_demodulate: Made sure the line frequency property is not corrupted by truncation.

parent 90e8f103
No related branches found
No related tags found
No related merge requests found
......@@ -496,7 +496,7 @@ static void set_property(GObject *object, enum property prop_id, const GValue *v
switch (prop_id) {
case ARG_LINE_FREQUENCY:
element->line_frequency = 100 * g_value_get_double(value);
element->line_frequency = (int) (100.000000000001 * g_value_get_double(value)); /* Make sure truncation does not corrupt it */
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment