From c857047be72c176107a0913640946e01ced86c78 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 28 Aug 2010 09:35:01 +0200 Subject: [PATCH] utils: Fix inverted assertion logic in gst_util_fraction_compare() --- gst/gstutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4