]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/commit
gst/gstvalue.c: use ints and return ints, fractions only use ints, too, so this avoid...
authorBenjamin Otte <otte@gnome.org>
Fri, 16 Jul 2004 01:16:53 +0000 (01:16 +0000)
committerBenjamin Otte <otte@gnome.org>
Fri, 16 Jul 2004 01:16:53 +0000 (01:16 +0000)
commitae7fb01363d742595c106845b509bb435247a5a4
tree18fd2c23955fb5dda03457f6b12965a16b7483fa
parent895f68b86bd8c08e9c407c2759cfdcab9490157e
gst/gstvalue.c: use ints and return ints, fractions only use ints, too, so this avoids accidently casting multiplicat...

Original commit message from CVS:
* gst/gstvalue.c: (gst_greatest_common_divisor):
use ints and return ints, fractions only use ints, too, so this
avoids accidently casting multiplications to unsigned
(gst_value_lcopy_fraction): it's ints, not uint32
(gst_value_set_fraction): disallow minint, multiplying and negation
are broken with it
(gst_value_fraction_multiply): fix to make large numbers work and get
rid of the assumption that the multiplication of two ints fits an
int64 - dunno if that's true for all systems
* testsuite/caps/Makefile.am:
* testsuite/caps/fraction-multiply-and-zero.c:
(check_multiplication), (check_equal), (zero_test), (main):
add tests for all the stuff above
* testsuite/caps/value_compare.c: (test1):
fix comment
* tests/.cvsignore:
* testsuite/caps/.cvsignore:
* testsuite/debug/.cvsignore:
* testsuite/dlopen/.cvsignore:
* testsuite/states/.cvsignore:
get up to date
17 files changed:
ChangeLog
gst/gstvalue.c
tests/.gitignore
tests/old/testsuite/caps/.gitignore
tests/old/testsuite/caps/Makefile.am
tests/old/testsuite/caps/fraction-multiply-and-zero.c [new file with mode: 0644]
tests/old/testsuite/caps/value_compare.c
tests/old/testsuite/debug/.gitignore
tests/old/testsuite/dlopen/.gitignore [new file with mode: 0644]
tests/old/testsuite/states/.gitignore
testsuite/caps/.gitignore
testsuite/caps/Makefile.am
testsuite/caps/fraction-multiply-and-zero.c [new file with mode: 0644]
testsuite/caps/value_compare.c
testsuite/debug/.gitignore
testsuite/dlopen/.gitignore [new file with mode: 0644]
testsuite/states/.gitignore