summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2006-02-05 13:07:31 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2006-02-05 13:07:31 +0000
commit3be2ea9836fce33bd79c5802708541884c89ebf8 (patch)
treefee7d33d71e385f10874fa9aedac9ec78dc66708
parent4016fe281feb5d0176971a56f07d2145371dae56 (diff)
downloadxine-lib-3be2ea9836fce33bd79c5802708541884c89ebf8.tar.gz
xine-lib-3be2ea9836fce33bd79c5802708541884c89ebf8.tar.bz2
patch by Vlad Seryakov (don't change anything if parameters == -1)
CVS patchset: 7869 CVS date: 2006/02/05 13:07:31
-rw-r--r--src/input/input_pvr.c8
1 files 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:/<prefix_to_tmp_files>\!<prefix_to_saved_files>\!<max_page_age>
*
- * $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;