[vlc-commits] bluray: use title names when available

Petri Hintukainen git at videolan.org
Thu Nov 12 12:54:58 CET 2015


vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Wed Nov 11 10:19:16 2015 +0200| [93a89a3d401b2cd7f9571b0365fabe45fb3c1202] | committer: Jean-Baptiste Kempf

bluray: use title names when available

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=93a89a3d401b2cd7f9571b0365fabe45fb3c1202
---

 modules/access/bluray.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 7d295f4..f66d948 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1424,6 +1424,12 @@ static void blurayInitTitles(demux_t *p_demux, int menu_titles)
             t->psz_name = strdup(_("Top Menu"));
         } else if (i == i_title - 1) {
             t->psz_name = strdup(_("First Play"));
+        } else {
+            /* add possible title name from disc metadata */
+            const BLURAY_DISC_INFO *di = bd_get_disc_info(p_sys->bluray);
+            if (di && di->titles && i < di->num_titles && di->titles[i]->name) {
+                t->psz_name = strdup(di->titles[i]->name);
+            }
         }
 
         TAB_APPEND(p_sys->i_title, p_sys->pp_title, t);



More information about the vlc-commits mailing list