From 4aa516cab3c384d239b7cc67c3db340d2ce86078 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sun, 4 Apr 2004 17:11:37 +0000 Subject: [PATCH] fixed broken diseqc fetch from channels file git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12117 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/dvbin.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libmpdemux/dvbin.c b/libmpdemux/dvbin.c index db08f88e2c..8fb2f7e253 100644 --- a/libmpdemux/dvbin.c +++ b/libmpdemux/dvbin.c @@ -197,9 +197,10 @@ static dvb_channels_list *dvb_get_channels(char *filename, int type) ptr->tone = -1; ptr->inv = INVERSION_AUTO; ptr->cr = FEC_AUTO; - if((ptr->diseqc > 4) || (ptr->diseqc < 1)) + if((ptr->diseqc > 4) || (ptr->diseqc < 0)) continue; - ptr->diseqc--; + if(ptr->diseqc > 0) + ptr->diseqc--; mp_msg(MSGT_DEMUX, MSGL_V, "NUM: %d, NUM_FIELDS: %d, NAME: %s, FREQ: %d, SRATE: %d, POL: %c, DISEQC: %d, TONE: %d, VPID: %d, APID1: %d, APID2: %d, TPID: %d, PROGID: %d\n", list->NUM_CHANNELS, fields, ptr->name, ptr->freq, ptr->srate, ptr->pol, ptr->diseqc, ptr->tone, ptr->vpid, ptr->apid1, ptr->apid2, ptr->tpid, ptr->progid);