+2007-06-14 Edward Hervey <edward@fluendo.com>
+
+ * gst/gstparamspecs.c: (_gst_param_fraction_validate):
+ Since this file doesn't include "gst.h" it will not go through the
+ macros that disable GST_LOG if debugging was disabled.
+
2007-06-14 Tim-Philipp Müller <tim at centricular dot net>
* libs/gst/check/Makefile.am:
gst_value_set_fraction (&f_max, fspec->max_num, fspec->max_den);
res = gst_value_compare (&f_min, &f_this);
+#ifndef GST_DISABLE_GST_DEBUG
GST_LOG ("comparing %d/%d to %d/%d, result = %d", fspec->min_num,
fspec->min_den, value->data[0].v_int, value->data[1].v_int, res);
+#endif
if (res != GST_VALUE_LESS_THAN && res != GST_VALUE_EQUAL)
goto out;
+#ifndef GST_DISABLE_GST_DEBUG
GST_LOG ("comparing %d/%d to %d/%d, result = %d", value->data[0].v_int,
value->data[1].v_int, fspec->max_num, fspec->max_den, res);
+#endif
res = gst_value_compare (&f_this, &f_max);
if (res != GST_VALUE_LESS_THAN && res != GST_VALUE_EQUAL)
goto out;
g_value_unset (&f_max);
g_value_unset (&f_this);
+#ifndef GST_DISABLE_GST_DEBUG
GST_LOG ("%swithin range", (within_range) ? "" : "not ");
+#endif
/* return FALSE if everything ok, otherwise TRUE */
return !within_range;