From 032bd4cbd8287ec32a1b74ac50e3c949dd353b6c Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 14 Jun 2007 16:07:09 +0000 Subject: [PATCH] gst/gstparamspecs.c: Since this file doesn't include "gst.h" it will not go through the macros that disable GST_LOG i... Original commit message from CVS: * 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. --- ChangeLog | 6 ++++++ gst/gstparamspecs.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 15a7907770..8da7ca8ae3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-06-14 Edward Hervey + + * 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 * libs/gst/check/Makefile.am: diff --git a/gst/gstparamspecs.c b/gst/gstparamspecs.c index 2759a3ef9a..fa75e4e1e8 100644 --- a/gst/gstparamspecs.c +++ b/gst/gstparamspecs.c @@ -67,13 +67,17 @@ _gst_param_fraction_validate (GParamSpec * pspec, GValue * value) 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; @@ -86,7 +90,9 @@ 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;