There's small typo that breaks build. Maybe this function should be added to API or moved to mpls_dump.c ... ?
Writing good logic to guess main title is not simple task (current implementation fails quite often). If the function is improved it could be useful for applications ? On pe, 2013-02-15 at 08:21 +0100, Diego Elio Pettenò wrote: > libbluray | branch: flameeyes | Diego Elio Pettenò <[email protected]> | > Thu Feb 14 23:17:55 2013 -0800| [d071a4aa5026f2265bba0e9004b2e94bb61a82be] | > committer: Diego Elio Pettenò > > Expose nav_find_main_title only to mlps_dump. > > > http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=d071a4aa5026f2265bba0e9004b2e94bb61a82be > --- > > Makefile.am | 2 +- > src/libbluray/bdnav/navigation.c | 2 ++ > src/libbluray/bdnav/navigation.h | 2 ++ > 3 files changed, 5 insertions(+), 1 deletion(-) > > diff --git a/Makefile.am b/Makefile.am > index 1a886e9..c9a81ae 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -118,7 +118,7 @@ EXTRA_PROGRAMS = \ > # the overriding of CFLAGS is necessary to ensure that automake will > # rebuild different objects for different targets. > > -mpls_dump_CFLAGS = $(AM_CFLAGS) > +mpls_dump_CFLAGS = $(AM_CFLAGS) -DMPLS_DUMP > mpls_dump_SOURCES = \ > src/examples/mpls_dump.c \ > src/examples/util.c \ > diff --git a/src/libbluray/bdnav/navigation.c > b/src/libbluray/bdnav/navigation.c > index b4e6971..9a4ea43 100644 > --- a/src/libbluray/bdnav/navigation.c > +++ b/src/libbluray/bdnav/navigation.c > @@ -214,6 +214,7 @@ void nav_free_title_list(NAV_TITLE_LIST *title_list) > X_FREE(title_list); > } > > +#ifdef MPLS_DUMP > char* nav_find_main_title(const char *root) > { > BD_DIR_H *dir; > @@ -284,6 +285,7 @@ char* nav_find_main_title(const char *root) > return NULL; > } > } > +#endif > > uint8_t nav_lookup_aspect(NAV_CLIP *clip, int pid) > { > diff --git a/src/libbluray/bdnav/navigation.h > b/src/libbluray/bdnav/navigation.h > index 497e903..b4498a4 100644 > --- a/src/libbluray/bdnav/navigation.h > +++ b/src/libbluray/bdnav/navigation.h > @@ -136,7 +136,9 @@ struct nav_title_list_s > }; > > BD_PRIVATE uint8_t nav_lookup_aspect(NAV_CLIP *clip, int pid); > +#ifdef MLPS_DUMP typo (-> MPLS_DUMP) > BD_PRIVATE char* nav_find_main_title(const char *root); > +#endif > BD_PRIVATE NAV_TITLE* nav_title_open(const char *root, const char *playlist, > unsigned angle); > BD_PRIVATE void nav_title_close(NAV_TITLE *title); > BD_PRIVATE NAV_CLIP* nav_next_clip(NAV_TITLE *title, NAV_CLIP *clip); > _______________________________________________ > libbluray-devel mailing list > [email protected] > http://mailman.videolan.org/listinfo/libbluray-devel _______________________________________________ libbluray-devel mailing list [email protected] http://mailman.videolan.org/listinfo/libbluray-devel
