changeset 12047:6fbcdac049c6

added missing tuning parameters (inversion and coderate) and changed debug level in dvb_streaming_read()
author nicodvb
date Fri, 19 Mar 2004 20:22:10 +0000
parents cf68f8b514b0
children 09aae06de9c8
files libmpdemux/dvbin.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/dvbin.c	Fri Mar 19 20:06:30 2004 +0000
+++ b/libmpdemux/dvbin.c	Fri Mar 19 20:22:10 2004 +0000
@@ -195,6 +195,11 @@
 			ptr->freq *=  1000UL;
 			ptr->srate *=  1000UL;
 			ptr->tone = -1;
+			ptr->inv = INVERSION_AUTO;
+			ptr->cr = FEC_AUTO;
+			if((ptr->diseqc > 4) || (ptr->diseqc < 1))
+			    continue;
+			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);
@@ -294,7 +299,7 @@
 	int fd = stream->fd;
 	dvb_priv_t *priv  = (dvb_priv_t *) stream->priv;
 
-	mp_msg(MSGT_DEMUX, MSGL_V, "dvb_streaming_read(%d)\n", size);
+	mp_msg(MSGT_DEMUX, MSGL_DBG3, "dvb_streaming_read(%d)\n", size);
 
 	tries = priv->retry + 1;
 	
@@ -308,7 +313,7 @@
 	    	if((rk = read(fd, &buffer[pos], rk)) > 0)
 		{
 			pos += rk;
-			mp_msg(MSGT_DEMUX, MSGL_V, "ret (%d) bytes\n", pos);
+			mp_msg(MSGT_DEMUX, MSGL_DBG3, "ret (%d) bytes\n", pos);
 		}
 		else
 		{