summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-08-28 07:35:01 (GMT)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-08-28 07:35:01 (GMT)
commitc857047be72c176107a0913640946e01ced86c78 (patch)
treed75c280c2eb87bc867d2d64fde61c81f2466ec7f
parent8ca48752fb787ce708c86183b51505cd53d6b5ed (diff)
utils: Fix inverted assertion logic in gst_util_fraction_compare()
-rw-r--r--gst/gstutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstutils.c b/gst/gstutils.c
index 265f427..3f6dc35 100644
--- a/gst/gstutils.c
+++ b/gst/gstutils.c
@@ -4218,7 +4218,7 @@ gst_util_fraction_compare (gint a_n, gint a_d, gint b_n, gint b_d)
gint64 new_num_2;
gint gcd;
- g_return_val_if_fail (a_d == 0 || b_d == 0, 0);
+ g_return_val_if_fail (a_d != 0 && b_d != 0, 0);
/* Simplify */
gcd = gst_util_greatest_common_divisor (a_n, a_d);