[libbluray-devel] Check chapter marks when testing for duplicates playlists

John Stebbins git at videolan.org
Sun Jun 5 21:45:36 CEST 2011


libbluray | branch: master | John Stebbins <jstebbins.hb at gmail.com> | Sun Jun  5 12:14:18 2011 -0700| [a869da83b81f63e44bba785b34b70dfe68ab14e4] | committer: John Stebbins

Check chapter marks when testing for duplicates playlists

playlists that have different chapter marks but were otherwise the same
were being filtered out.

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=a869da83b81f63e44bba785b34b70dfe68ab14e4
---

 src/libbluray/bdnav/navigation.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/libbluray/bdnav/navigation.c b/src/libbluray/bdnav/navigation.c
index c9c57e5..6f58a18 100644
--- a/src/libbluray/bdnav/navigation.c
+++ b/src/libbluray/bdnav/navigation.c
@@ -40,6 +40,9 @@ static int _filter_dup(MPLS_PL *pl_list[], unsigned count, MPLS_PL *pl)
         if (pl->list_count != pl_list[ii]->list_count) {
             continue;
         }
+        if (pl->mark_count != pl_list[ii]->mark_count) {
+            continue;
+        }
         for (jj = 0; jj < pl->list_count; jj++) {
             MPLS_PI *pi1, *pi2;
 



More information about the libbluray-devel mailing list