diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-17 20:33:47 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-17 20:33:47 +0000 |
commit | 1d62c233da06a4a1c110c81a854de335bda8d397 (patch) | |
tree | 51ff882cabd67b32e80cb6797ab8336a4c053717 | |
parent | e681023353fe486ee0faab27f1aba022adcb2968 (diff) | |
download | xine-lib-1d62c233da06a4a1c110c81a854de335bda8d397.tar.gz xine-lib-1d62c233da06a4a1c110c81a854de335bda8d397.tar.bz2 |
fixed aspect ratio change bug
CVS patchset: 201
CVS date: 2001/06/17 20:33:47
-rw-r--r-- | src/video_out/video_out_xv.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c index 5d2bb8b98..bb57667ef 100644 --- a/src/video_out/video_out_xv.c +++ b/src/video_out/video_out_xv.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out_xv.c,v 1.41 2001/06/14 09:54:13 guenter Exp $ + * $Id: video_out_xv.c,v 1.42 2001/06/17 20:33:47 guenter Exp $ * * video_out_xv.c, X11 video extension interface for xine * @@ -361,6 +361,9 @@ static void xv_calc_format (xv_driver_t *this, this->delivered_height = height; this->delivered_ratio_code = ratio_code; + if ( (!width) || (!height) ) + return; + /* * aspect ratio calculation */ @@ -432,7 +435,7 @@ static void xv_calc_format (xv_driver_t *this, this->request_dest_size (ideal_width, ideal_height, &dest_x, &dest_y, &dest_width, &dest_height); - + xv_adapt_to_output_area (this, dest_x, dest_y, dest_width, dest_height); } |