From 9f01bd64349cc14c25991cea5e054f286ab732bf Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 8 May 2009 14:23:48 +0100 Subject: [PATCH] resindvd: Remove per-menu description from the TITLE tag The part number reported while in a menu doesn't reflect the selected menu, so it's pointless to use it to report which menu we're in (Audio, Angle etc). Just report "DVD Menu" in the title tag instead. --- ext/resindvd/resindvdsrc.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/ext/resindvd/resindvdsrc.c b/ext/resindvd/resindvdsrc.c index b95e5c4..7b6a741 100644 --- a/ext/resindvd/resindvdsrc.c +++ b/ext/resindvd/resindvdsrc.c @@ -778,18 +778,8 @@ update_title_info (resinDvdSrc * src) src->cur_angle = cur_agl; if (title_n == 0) { - static const char *dvd_menu_map[] = { - NULL, NULL, "Title", "Root", - "Subpicture", "Audio", "Angle", "Part" - }; - /* In a menu */ - if (part_n >= 0 && part_n < G_N_ELEMENTS (dvd_menu_map) - && dvd_menu_map[part_n]) { - title_str = g_strdup_printf ("DVD %s Menu", dvd_menu_map[part_n]); - } else { - title_str = g_strdup ("DVD Menu"); - } + title_str = g_strdup ("DVD Menu"); } else { /* In a title */ if (n_angles > 1) { -- 2.7.4