diff --git a/ChangeLog b/ChangeLog index a6e192041b..a05c8c38b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-12-12 Thomas Vander Stichele + + * gst/gstvalue.c: (gst_value_transform_double_fraction): + floor is not needed, F is always positive; this obviates the + need for adding -lm when building without libxml + 2005-12-12 Wim Taymans * libs/gst/base/gstbasesink.c: (gst_base_sink_get_position): diff --git a/gst/gstvalue.c b/gst/gstvalue.c index 23543b2482..8445f5bbe3 100644 --- a/gst/gstvalue.c +++ b/gst/gstvalue.c @@ -3430,7 +3430,7 @@ gst_value_transform_double_fraction (const GValue * src_value, for (i = 0; i < MAX_TERMS; i++) { /* get next term */ - A = floor (F); + A = (gint) F; /* no floor() needed, F is always >= 0 */ /* get new divisor */ F = F - A;