mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 10:04:23 +00:00
gst/gstvalue.c: If someone is foolish enough to compare 2 fractions with denominator = 0, return UNORDERED rather tha...
Original commit message from CVS: * gst/gstvalue.c: (gst_value_compare_fraction): If someone is foolish enough to compare 2 fractions with denominator = 0, return UNORDERED rather than aborting.
This commit is contained in:
parent
fdb51251dd
commit
79703a24e6
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-11-29 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* gst/gstvalue.c: (gst_value_compare_fraction):
|
||||
If someone is foolish enough to compare 2 fractions with denominator =
|
||||
0, return UNORDERED rather than aborting.
|
||||
|
||||
2006-11-28 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* libs/gst/base/Makefile.am:
|
||||
|
|
|
@ -3706,7 +3706,6 @@ gst_value_compare_fraction (const GValue * value1, const GValue * value2)
|
|||
/* new_num_1 == new_num_2 implies that both denominators must have
|
||||
* been 0, beause otherwise simplification would have caught the
|
||||
* equivalence */
|
||||
g_assert_not_reached ();
|
||||
return GST_VALUE_UNORDERED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue