From 3be2ea9836fce33bd79c5802708541884c89ebf8 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sun, 5 Feb 2006 13:07:31 +0000 Subject: patch by Vlad Seryakov (don't change anything if parameters == -1) CVS patchset: 7869 CVS date: 2006/02/05 13:07:31 --- src/input/input_pvr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/input/input_pvr.c b/src/input/input_pvr.c index 78e4f931a..ad19309fc 100644 --- a/src/input/input_pvr.c +++ b/src/input/input_pvr.c @@ -38,7 +38,7 @@ * usage: * xine pvr:/\!\! * - * $Id: input_pvr.c,v 1.58 2006/01/27 07:46:12 tmattern Exp $ + * $Id: input_pvr.c,v 1.59 2006/02/05 13:07:31 miguelfreitas Exp $ */ /************************************************************************** @@ -1012,9 +1012,9 @@ static void pvr_event_handler (pvr_input_plugin_t *this) { time(&this->show_time); } - if( v4l2_data->input != this->input || - v4l2_data->channel != this->channel || - v4l2_data->frequency != this->frequency ) { + if( (v4l2_data->input != -1 && v4l2_data->input != this->input) || + (v4l2_data->channel != -1 && v4l2_data->channel != this->channel) || + (v4l2_data->frequency != -1 && v4l2_data->frequency != this->frequency) ) { struct v4l2_frequency vf; this->input = v4l2_data->input; -- cgit v1.2.3