From 4b1211d2d0fa3bd4b9ed112acf528299b82ea962 Mon Sep 17 00:00:00 2001 From: attila Date: Sat, 1 Nov 2003 15:17:01 +0000 Subject: Patch by Nico 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 --- libmenu/menu_dvbin.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmenu') diff --git a/libmenu/menu_dvbin.c b/libmenu/menu_dvbin.c index c2aeefdd29..1e48508db3 100644 --- a/libmenu/menu_dvbin.c +++ b/libmenu/menu_dvbin.c @@ -112,6 +112,8 @@ static int fill_menu(menu_t* menu) elem->p.txt = name; elem->num = n; + if(n == 0) + elem->p.prev = NULL; menu_list_add_entry(menu, elem); } -- cgit v1.2.3