libaacs | branch: master | npzacs <npz...@gmail.com> | Fri Mar  3 09:55:23 2017 
+0200| [6d18c1c379a80ec04fb3860af39082feaef37864] | committer: npzacs

Remove always true check

> http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=6d18c1c379a80ec04fb3860af39082feaef37864
---

 src/examples/parser_test.c | 3 ---
 src/libaacs/aacs.c         | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/examples/parser_test.c b/src/examples/parser_test.c
index 26f4d6a..921014f 100644
--- a/src/examples/parser_test.c
+++ b/src/examples/parser_test.c
@@ -65,9 +65,6 @@ static int print_title_entries(title_entry_list *list)
   title_entry_list *cursor = list;
   while (cursor)
   {
-    if (!cursor->entry.discid)
-      break;
-
     printf("DISCID: %s\n", str_print_hex(tmp, cursor->entry.discid, 20));
 #if 0
     printf("  Title: %s\n", cursor->entry.title);
diff --git a/src/libaacs/aacs.c b/src/libaacs/aacs.c
index 59d116e..c491296 100644
--- a/src/libaacs/aacs.c
+++ b/src/libaacs/aacs.c
@@ -733,7 +733,7 @@ static void _find_config_entry(AACS *aacs, title_entry_list 
*ce,
     char str[48];
     char str2[48];
 
-    while (ce && ce->entry.discid) {
+    while (ce) {
         if (!memcmp(aacs->disc_id, ce->entry.discid, 20)) {
             BD_DEBUG(DBG_AACS, "Found config entry for discid %s\n",
                      str_print_hex(str, ce->entry.discid, 20));

_______________________________________________
libaacs-devel mailing list
libaacs-devel@videolan.org
https://mailman.videolan.org/listinfo/libaacs-devel

Reply via email to