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:
Jan Schmidt 2006-11-29 16:39:32 +00:00
parent fdb51251dd
commit 79703a24e6
2 changed files with 6 additions and 1 deletions

View file

@ -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:

View file

@ -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;
}