[Mplayer-cvslog] CVS: main/libmenu menu_dvbin.c,1.1,1.2

Attila Kinali CVS attila at mplayerhq.hu
Sat Nov 1 16:17:33 CET 2003


Update of /cvsroot/mplayer/main/libmenu
In directory mail:/var/tmp.root/cvs-serv11948/libmenu

Modified Files:
	menu_dvbin.c 
Log Message:
Patch by Nico <nsabbi at 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



Index: menu_dvbin.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmenu/menu_dvbin.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- menu_dvbin.c	16 Aug 2003 09:50:45 -0000	1.1
+++ menu_dvbin.c	1 Nov 2003 15:16:51 -0000	1.2
@@ -112,6 +112,8 @@
 				elem->p.txt 	= name;
 				elem->num 	= n;
 				
+				if(n == 0)
+				    elem->p.prev = NULL;
 				
 				menu_list_add_entry(menu, elem);
 			}



More information about the MPlayer-cvslog mailing list