diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-12-26 21:20:31 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-12-26 21:21:43 +0000 |
commit | 8a7fc1d8c9a34284deb9488273c60167114f67c7 (patch) | |
tree | 52afb69634a5906b0b6530bab246a7d4f73d1bcd /gst/gstclock.c | |
parent | 3889c3c579f16fddd166561fee18c790bdf81afc (diff) |
Revert "micro-optim: if (x) is cheaper than if (x > 0) for unsigned integers"
This reverts commit 6aa8ca37eeb9debfa6919741a023250bf278248f.
See http://article.gmane.org/gmane.comp.video.gstreamer.devel/32282
Diffstat (limited to 'gst/gstclock.c')
-rw-r--r-- | gst/gstclock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstclock.c b/gst/gstclock.c index 181e2f80ae..18034750d6 100644 --- a/gst/gstclock.c +++ b/gst/gstclock.c @@ -1015,7 +1015,7 @@ gst_clock_set_calibration (GstClock * clock, GstClockTime internal, GstClockTime { g_return_if_fail (GST_IS_CLOCK (clock)); g_return_if_fail (rate_num != GST_CLOCK_TIME_NONE); - g_return_if_fail (rate_denom && rate_denom != GST_CLOCK_TIME_NONE); + g_return_if_fail (rate_denom > 0 && rate_denom != GST_CLOCK_TIME_NONE); write_seqlock (clock); GST_CAT_DEBUG_OBJECT (GST_CAT_CLOCK, clock, |