summaryrefslogtreecommitdiffstats
path: root/libmpdemux/dvb_tune.c
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-11-01 15:17:01 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-11-01 15:17:01 +0000
commit4b1211d2d0fa3bd4b9ed112acf528299b82ea962 (patch)
tree976dbcd01a54132ea2efd09c6a0baf6a0297c500 /libmpdemux/dvb_tune.c
parent6ce8b10dd24d257ad609fff7e9919ff4d8e918e7 (diff)
downloadmpv-4b1211d2d0fa3bd4b9ed112acf528299b82ea962.tar.bz2
mpv-4b1211d2d0fa3bd4b9ed112acf528299b82ea962.tar.xz
Patch by Nico <nsabbi@libero.it>
this patch fixes a recently discovered bug for which DVB-C users couldn't tune (wrong parsing of the config file and incorrect parameter passing to tune_it()) and includes the still unapplied patch posted in date 6/9/2003: - it works correctly with and without caches; in the former case it doesn't take anymore a lot of time to empty the cache before changing channel; the uninit_cache() function is called in mplayer.c just after the new tuning operation - initialized a variable identifying the tuner type, and exit if it isn't supported - doesn't crash anymore when 1) the channels file doesn't exists 2) the tuner is used by another application 3) in the menu, when trying to select a channel before the first 4) some mp_msg() called in case of error git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11353 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/dvb_tune.c')
-rw-r--r--libmpdemux/dvb_tune.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmpdemux/dvb_tune.c b/libmpdemux/dvb_tune.c
index 83a0378596..e1d7e4b5c2 100644
--- a/libmpdemux/dvb_tune.c
+++ b/libmpdemux/dvb_tune.c
@@ -65,7 +65,7 @@ int dvb_get_tuner_type(dvb_priv_t *priv)
fe_fd = open(dvb_frontenddev[priv->card], O_RDWR);
if(fe_fd < 0)
{
- mp_msg(MSGT_DEMUX, MSGL_ERR, "get_tuner_type(%d, %s), ERROR IN OPENING FRONTEND DEVICE %s: %d\n", priv->card, dvb_frontenddev[priv->card], errno);
+ mp_msg(MSGT_DEMUX, MSGL_ERR, "get_tuner_type(card %d), ERROR IN OPENING FRONTEND DEVICE %s: ERRNO %d\n", priv->card, dvb_frontenddev[priv->card], errno);
return 0;
}
@@ -104,7 +104,7 @@ static int open_fe(dvb_priv_t *priv)
priv->fe_fd = open(dvb_frontenddev[priv->card], O_RDWR);
if(priv->fe_fd < 0)
{
- mp_msg(MSGT_DEMUX, MSGL_ERR, "ERROR IN OPENING FRONTEND DEVICE %s: %d\n", dvb_frontenddev[priv->card], errno);
+ mp_msg(MSGT_DEMUX, MSGL_ERR, "ERROR IN OPENING FRONTEND DEVICE %s: ERRNO %d\n", dvb_frontenddev[priv->card], errno);
return 0;
}
#ifdef HAVE_DVB_HEAD
@@ -113,7 +113,7 @@ static int open_fe(dvb_priv_t *priv)
priv->sec_fd = open(dvb_secdev[priv->card], O_RDWR);
if(priv->sec_fd < 0)
{
- mp_msg(MSGT_DEMUX, MSGL_ERR, "ERROR IN OPENING SEC DEVICE %s: %d\n", dvb_secdev[priv->card], errno);
+ mp_msg(MSGT_DEMUX, MSGL_ERR, "ERROR IN OPENING SEC DEVICE %s: ERRNO %d\n", dvb_secdev[priv->card], errno);
close(priv->fe_fd);
return 0;
}
@@ -209,7 +209,7 @@ dvb_tune(dvb_priv_t *priv, int freq, char pol, int srate, int diseqc, int tone,
if(freq > 100000000)
{
- tune_it(priv->fe_fd, 0, freq, 0, 0, tone, specInv, diseqc, modulation, HP_CodeRate, TransmissionMode, guardInterval, bandWidth);
+ tune_it(priv->fe_fd, 0, freq, srate, 0, tone, specInv, diseqc, modulation, HP_CodeRate, TransmissionMode, guardInterval, bandWidth);
}
else if(freq != 0)
{