resindvd: Remove per-menu description from the TITLE tag
authorJan Schmidt <thaytan@noraisin.net>
Fri, 8 May 2009 13:23:48 +0000 (14:23 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Mon, 11 May 2009 16:04:07 +0000 (17:04 +0100)
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

index b95e5c4..7b6a741 100644 (file)
@@ -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) {