add debugging for display PAR calculation

Original commit message from CVS:
add debugging for display PAR calculation
This commit is contained in:
Thomas Vander Stichele 2004-08-03 08:48:29 +00:00
parent f111fd935d
commit 0fefd341a7
3 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-08-03 Thomas Vander Stichele <thomas at apestaart dot org>
* 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 <ds@schleef.org>
* configure.ac: Fix mikmod CFLAGS.

View file

@ -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 */

View file

@ -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);