mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
gst/gstvalue.c: floor is not needed, F is always positive; this obviates the need for adding -lm when building withou...
Original commit message from CVS: * 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
This commit is contained in:
parent
96b8d069e5
commit
ef7dedbfc8
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-12-12 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* 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 <wim@fluendo.com>
|
2005-12-12 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* libs/gst/base/gstbasesink.c: (gst_base_sink_get_position):
|
* libs/gst/base/gstbasesink.c: (gst_base_sink_get_position):
|
||||||
|
|
|
@ -3430,7 +3430,7 @@ gst_value_transform_double_fraction (const GValue * src_value,
|
||||||
|
|
||||||
for (i = 0; i < MAX_TERMS; i++) {
|
for (i = 0; i < MAX_TERMS; i++) {
|
||||||
/* get next term */
|
/* get next term */
|
||||||
A = floor (F);
|
A = (gint) F; /* no floor() needed, F is always >= 0 */
|
||||||
/* get new divisor */
|
/* get new divisor */
|
||||||
F = F - A;
|
F = F - A;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue