From: Julien Moutte Date: Mon, 28 Nov 2005 14:15:54 +0000 (+0000) Subject: sys/xvimage/xvimagesink.c: Use calculated video geometry from _setcaps instead of... X-Git-Tag: 1.19.3~511^2~12445 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e5ce652b216b2382f55b2dc1c160ac18cefd7d3;p=platform%2Fupstream%2Fgstreamer.git sys/xvimage/xvimagesink.c: Use calculated video geometry from _setcaps instead of buffer caps to respect pixel aspect... Original commit message from CVS: 2005-11-28 Julien MOUTTE * 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) --- diff --git a/ChangeLog b/ChangeLog index c5cfdc7..5752de7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2005-11-28 Julien MOUTTE + * 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 + * docs/libs/tmpl/gstcolorbalance.sgml: * docs/libs/tmpl/gstmixer.sgml: * docs/libs/tmpl/gstxoverlay.sgml: diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index dde51a4..5178586 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -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;