diff --git a/ChangeLog b/ChangeLog index bd7b12cb29..f7fe8b8325 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-08-03 Thomas Vander Stichele + + * sys/ximage/ximagesink.c: (gst_ximagesink_xcontext_get): + * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xcontext_get): + add debugging for display PAR calculation + 2004-08-02 David Schleef * configure.ac: Fix mikmod CFLAGS. diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 0c5f371304..fe0f1e2190 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -764,6 +764,9 @@ gst_ximagesink_xcontext_get (GstXImageSink * ximagesink) xcontext->widthmm = DisplayWidthMM (xcontext->disp, xcontext->screen_num); xcontext->heightmm = DisplayHeightMM (xcontext->disp, xcontext->screen_num); + GST_DEBUG_OBJECT (ximagesink, "X reports %dx%d pixels and %d mm x %d mm", + xcontext->width, xcontext->height, xcontext->widthmm, xcontext->heightmm); + gst_ximagesink_calculate_pixel_aspect_ratio (xcontext); /* We get supported pixmap formats at supported depth */ diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 113ee41a9e..4a720f0fbf 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -916,6 +916,10 @@ gst_xvimagesink_xcontext_get (GstXvImageSink * xvimagesink) xcontext->widthmm = DisplayWidthMM (xcontext->disp, xcontext->screen_num); xcontext->heightmm = DisplayHeightMM (xcontext->disp, xcontext->screen_num); + GST_DEBUG_OBJECT (xvimagesink, "X reports %dx%d pixels and %d mm x %d mm", + xcontext->width, xcontext->height, xcontext->widthmm, xcontext->heightmm); + + gst_xvimagesink_calculate_pixel_aspect_ratio (xcontext); /* We get supported pixmap formats at supported depth */ px_formats = XListPixmapFormats (xcontext->disp, &nb_formats);