[libbluray-devel] mpls_dump: do not check for duplicates across directories

hpi1 git at videolan.org
Sun May 15 15:28:45 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun May 15 15:31:18 2016 +0300| [222a48e914d46da4cc2004627eb349953e468b5b] | committer: hpi1

mpls_dump: do not check for duplicates across directories

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

 src/devtools/mpls_dump.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/devtools/mpls_dump.c b/src/devtools/mpls_dump.c
index 405b6a1..3642013 100644
--- a/src/devtools/mpls_dump.c
+++ b/src/devtools/mpls_dump.c
@@ -741,6 +741,13 @@ main(int argc, char *argv[])
         if (S_ISDIR(st.st_mode)) {
 
             printf("Directory: %s:\n", argv[ii]);
+
+            /* drop old ones (do not check for duplicates across directories) */
+            for (int jj = 0; jj < pl_ii; jj++) {
+                bd_free_mpls(pl_list[jj]);
+            }
+            pl_ii = 0;
+
             path = _mk_path(argv[ii], PLAYLIST_DIR);
             if (path == NULL) {
                 fprintf(stderr, "Failed to find playlist path: %s\n", argv[ii]);



More information about the libbluray-devel mailing list