From be313a19c38b8c0747feac9d6024801c257fc255 Mon Sep 17 00:00:00 2001 From: rofafor Date: Sat, 10 Jan 2009 17:02:42 +0000 Subject: Changed the default grab quality to match VDR's documentation. --- HISTORY | 1 + xine_frontend.c | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/HISTORY b/HISTORY index 21a7f889..7f6c2d4e 100644 --- a/HISTORY +++ b/HISTORY @@ -3,6 +3,7 @@ VDR Plugin 'xineliboutput' Revision History ????-??-??: Version 1.1.0 +- Changed the default grab quality to match VDR's documentation. - Added sharpness and noise reduction setup options for VDPAU. - Added '-C'/'--config' command-line option to specify xine's configuration file. - Replaced cIConv with VDR's cCharConv. diff --git a/xine_frontend.c b/xine_frontend.c index acdd0d7f..e5907fe1 100644 --- a/xine_frontend.c +++ b/xine_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend.c,v 1.93 2008-12-19 16:01:55 rofafor Exp $ + * $Id: xine_frontend.c,v 1.94 2009-01-10 17:02:42 rofafor Exp $ * */ @@ -1766,9 +1766,7 @@ static char *fe_grab(frontend_t *this_gen, int *size, int jpeg, jpeg ? "JPEG" : "PNM", quality, width, height); /* validate parameters */ - if (quality < 0) - quality = 0; - else if(quality > 100) + if ((quality < 0) || (quality > 100)) quality = 100; width = (MIN(16, MAX(width, 1920)) + 1) & ~1; /* 16...1920, even */ height = (MIN(16, MAX(width, 1200)) + 1) & ~1; /* 16...1200, even */ -- cgit v1.2.3