sys/xvimage/xvimagesink.c: Use calculated video geometry from _setcaps instead of...
authorJulien Moutte <julien@moutte.net>
Mon, 28 Nov 2005 14:15:54 +0000 (14:15 +0000)
committerJulien Moutte <julien@moutte.net>
Mon, 28 Nov 2005 14:15:54 +0000 (14:15 +0000)
Original commit message from CVS:
2005-11-28  Julien MOUTTE  <julien@moutte.net>

* sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_put):
Use calculated video geometry from _setcaps instead of buffer
caps to respect pixel aspect ratio. (fixes #322388)

ChangeLog
sys/xvimage/xvimagesink.c

index c5cfdc7..5752de7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2005-11-28  Julien MOUTTE  <julien@moutte.net>
 
+       * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_put):
+       Use calculated video geometry from _setcaps instead of buffer
+       caps to respect pixel aspect ratio. (fixes #322388)
+
+2005-11-28  Julien MOUTTE  <julien@moutte.net>
+
        * docs/libs/tmpl/gstcolorbalance.sgml:
        * docs/libs/tmpl/gstmixer.sgml:
        * docs/libs/tmpl/gstxoverlay.sgml:
index dde51a4..5178586 100644 (file)
@@ -613,8 +613,10 @@ gst_xvimagesink_xvimage_put (GstXvImageSink * xvimagesink,
 
   gst_xvimagesink_xwindow_update_geometry (xvimagesink, xvimagesink->xwindow);
 
-  src.w = xvimage->width;
-  src.h = xvimage->height;
+  /* We use the calculated geometry from _setcaps as a source to respect 
+     source and screen pixel aspect ratios. */
+  src.w = GST_VIDEO_SINK_WIDTH (xvimagesink);
+  src.h = GST_VIDEO_SINK_HEIGHT (xvimagesink);
   dst.w = xvimagesink->xwindow->width;
   dst.h = xvimagesink->xwindow->height;