From 9523130954a8fe130380638346ec3c1665ef8f97 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 28 Jul 2004 14:53:31 +0000 Subject: [PATCH] don't debug if not there Original commit message from CVS: don't debug if not there --- gst/videoscale/gstvideoscale.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 549491266b..9351bc3097 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -267,10 +267,10 @@ gst_videoscale_link (GstPad * pad, const GstCaps * caps) gst_caps_set_simple (newcaps, "width", G_TYPE_INT, videoscale->from_width, "height", G_TYPE_INT, videoscale->from_height, NULL); - GST_DEBUG_OBJECT (videoscale, "from par %d/%d", - gst_value_get_fraction_numerator (videoscale->from_par), - gst_value_get_fraction_denominator (videoscale->from_par)); if (videoscale->from_par) { + GST_DEBUG_OBJECT (videoscale, "from par %d/%d", + gst_value_get_fraction_numerator (videoscale->from_par), + gst_value_get_fraction_denominator (videoscale->from_par)); gst_structure_set (gst_caps_get_structure (newcaps, 0), "pixel-aspect-ratio", GST_TYPE_FRACTION, gst_value_get_fraction_numerator (videoscale->from_par),