[libbluray-devel] nav: when comparing playlists, compare also sub path count
hpi1
git at videolan.org
Sat Jul 9 14:44:58 CEST 2016
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Mar 4 12:20:13 2016 +0200| [9f6a43ae11ee4a74710d9246a7eaf60a9106541a] | committer: hpi1
nav: when comparing playlists, compare also sub path count
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=9f6a43ae11ee4a74710d9246a7eaf60a9106541a
---
src/libbluray/bdnav/navigation.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/libbluray/bdnav/navigation.c b/src/libbluray/bdnav/navigation.c
index 090883c..d5b9475 100644
--- a/src/libbluray/bdnav/navigation.c
+++ b/src/libbluray/bdnav/navigation.c
@@ -154,6 +154,12 @@ static int _pl_cmp(MPLS_PL *pl1, MPLS_PL *pl2)
if (pl1->mark_count != pl2->mark_count) {
return 1;
}
+ if (pl1->sub_count != pl2->sub_count) {
+ return 1;
+ }
+ if (pl1->ext_sub_count != pl2->ext_sub_count) {
+ return 1;
+ }
for (ii = 0; ii < pl1->mark_count; ii++) {
if (_pm_cmp(&pl1->play_mark[ii], &pl2->play_mark[ii])) {
More information about the libbluray-devel
mailing list