gst/gstvalue.c: If someone is foolish enough to compare 2 fractions with denominator...
authorJan Schmidt <thaytan@mad.scientist.com>
Wed, 29 Nov 2006 16:39:32 +0000 (16:39 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Wed, 29 Nov 2006 16:39:32 +0000 (16:39 +0000)
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.

ChangeLog
gst/gstvalue.c

index a7b7e46..60a6e14 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index 684abf5..cc1ea93 100644 (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;
 }