summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJulien Moutte <julien@moutte.net>2005-11-28 14:15:54 +0000
committerJulien Moutte <julien@moutte.net>2005-11-28 14:15:54 +0000
commit9e5ce652b216b2382f55b2dc1c160ac18cefd7d3 (patch)
tree6bddf48ad5af3111d37cec00bf8481d37fd91c5c /sys
parent4a3356cd6f9c1b789bccc7ecee9171a92a60e090 (diff)
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 <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)
Diffstat (limited to 'sys')
-rw-r--r--sys/xvimage/xvimagesink.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c
index dde51a47..5178586d 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;