diff options
author | Oliver Freyermuth <o.freyermuth@googlemail.com> | 2016-01-07 18:53:42 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-07 19:20:48 +0100 |
commit | 2dd8982f738f287a21cecbc0746af7569ff04dd5 (patch) | |
tree | 8e0db59e6e6e7fb66a524bedee612644b1995f07 /stream/dvb_tune.c | |
parent | 6eccd4a573b5c1d15ce83ef3c261e775ddca0685 (diff) | |
download | mpv-2dd8982f738f287a21cecbc0746af7569ff04dd5.tar.bz2 mpv-2dd8982f738f287a21cecbc0746af7569ff04dd5.tar.xz |
dvb: cleanup dvb_params struct, remove some unneeded fds
One was just used as an alias, the other one (sec_fd) was not used at
all.
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'stream/dvb_tune.c')
-rw-r--r-- | stream/dvb_tune.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stream/dvb_tune.c b/stream/dvb_tune.c index fa65156d3c..951c066032 100644 --- a/stream/dvb_tune.c +++ b/stream/dvb_tune.c @@ -370,7 +370,7 @@ static int do_diseqc(int secfd, int sat_no, int polv, int hi_lo) (sat_no / 4) % 2 ? SEC_MINI_B : SEC_MINI_A); } -static int tune_it(dvb_priv_t *priv, int fd_frontend, int fd_sec, +static int tune_it(dvb_priv_t *priv, int fd_frontend, unsigned int freq, unsigned int srate, char pol, int tone, bool is_dvb_s2, int stream_id, fe_spectral_inversion_t specInv, unsigned int diseqc, @@ -386,8 +386,8 @@ static int tune_it(dvb_priv_t *priv, int fd_frontend, int fd_sec, struct dvb_frontend_parameters feparams; struct dvb_frontend_info fe_info; - MP_VERBOSE(priv, "TUNE_IT, fd_frontend %d, fd_sec %d\nfreq %lu, srate %lu, " - "pol %c, tone %i, diseqc %u\n", fd_frontend, fd_sec, + MP_VERBOSE(priv, "TUNE_IT, fd_frontend %d, freq %lu, srate %lu, " + "pol %c, tone %i, diseqc %u\n", fd_frontend, (long unsigned int)freq, (long unsigned int)srate, pol, tone, diseqc); @@ -548,7 +548,7 @@ int dvb_tune(dvb_priv_t *priv, int freq, char pol, int srate, int diseqc, { MP_INFO(priv, "dvb_tune Freq: %lu\n", (long unsigned int) freq); - int ris = tune_it(priv, priv->fe_fd, priv->sec_fd, freq, srate, pol, tone, + int ris = tune_it(priv, priv->fe_fd, freq, srate, pol, tone, is_dvb_s2, stream_id, specInv, diseqc, modulation, HP_CodeRate, TransmissionMode, guardInterval, bandWidth, LP_CodeRate, hier, timeout); |