summaryrefslogtreecommitdiffstats
path: root/libmenu
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 /libmenu
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 'libmenu')
-rw-r--r--libmenu/menu_dvbin.c2
1 files changed, 2 insertions, 0 deletions
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);
}