From 7220b85f2ff6f43f0dd001be8f3ea7e14d93957e Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Sun, 29 Sep 2002 01:01:58 +0000 Subject: make xine less hysterical when it encounters this corner case CVS patchset: 2759 CVS date: 2002/09/29 01:01:58 --- src/xine-engine/vo_scale.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/xine-engine/vo_scale.c b/src/xine-engine/vo_scale.c index cfb9b1869..d2e88622c 100644 --- a/src/xine-engine/vo_scale.c +++ b/src/xine-engine/vo_scale.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: vo_scale.c,v 1.13 2002/09/17 10:32:45 mroi Exp $ + * $Id: vo_scale.c,v 1.14 2002/09/29 01:01:58 tmmm Exp $ * * Contains common code to calculate video scaling parameters. * In short, it will map frame dimensions to screen/window size. @@ -44,7 +44,8 @@ void vo_scale_compute_ideal_size (vo_scale_t *this) { double image_ratio, desired_ratio; - + static int warning_issued = 0; + if (this->scaling_disabled) { this->video_pixel_aspect = this->gui_pixel_aspect; @@ -74,8 +75,11 @@ void vo_scale_compute_ideal_size (vo_scale_t *this) { case 0: /* forbidden -> 4:3 */ printf ("vo_scale: invalid ratio, using 4:3\n"); default: - printf ("vo_scale: unknown aspect ratio (%d) in stream => using 4:3\n", - this->delivered_ratio_code); + if (!warning_issued) { + printf ("vo_scale: unknown aspect ratio (%d) in stream => using 4:3\n", + this->delivered_ratio_code); + warning_issued = 1; + } case XINE_VO_ASPECT_4_3: /* 4:3 */ desired_ratio = 4.0 / 3.0; break; -- cgit v1.2.3