[libbluray-devel] Cosmetics

hpi1 git at videolan.org
Mon Jan 21 13:02:35 CET 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Jan 21 13:33:34 2013 +0200| [9478cbffa2394ce6bdd13a1ab158d1143b140659] | committer: hpi1

Cosmetics

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

 src/libbluray/bdnav/meta_parse.c |   28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/libbluray/bdnav/meta_parse.c b/src/libbluray/bdnav/meta_parse.c
index e47784e..b9ee66c 100644
--- a/src/libbluray/bdnav/meta_parse.c
+++ b/src/libbluray/bdnav/meta_parse.c
@@ -167,20 +167,20 @@ META_ROOT *meta_parse(const char *device_path)
             if (size != size_read) {
                 BD_DEBUG(DBG_DIR, "Failed to read %s\n", path);
             } else {
-            doc = xmlReadMemory((char*)data, (int)size, base, NULL, 0);
-            if (doc == NULL) {
-                BD_DEBUG(DBG_DIR, "Failed to parse %s\n", path);
-            } else {
-            xmlNode *root_element = NULL;
-            root_element = xmlDocGetRootElement(doc);
-            root->dl_entries[i].di_name = root->dl_entries[i].di_alternative = NULL;
-            root->dl_entries[i].di_num_sets = root->dl_entries[i].di_set_number = -1;
-            root->dl_entries[i].toc_count = root->dl_entries[i].thumb_count = 0;
-            root->dl_entries[i].toc_entries = NULL;
-            root->dl_entries[i].thumbnails = NULL;
-            _parseManifestNode(root_element, &root->dl_entries[i]);
-            xmlFreeDoc(doc);
-            }
+                doc = xmlReadMemory((char*)data, (int)size, base, NULL, 0);
+                if (doc == NULL) {
+                    BD_DEBUG(DBG_DIR, "Failed to parse %s\n", path);
+                } else {
+                    xmlNode *root_element = NULL;
+                    root_element = xmlDocGetRootElement(doc);
+                    root->dl_entries[i].di_name = root->dl_entries[i].di_alternative = NULL;
+                    root->dl_entries[i].di_num_sets = root->dl_entries[i].di_set_number = -1;
+                    root->dl_entries[i].toc_count = root->dl_entries[i].thumb_count = 0;
+                    root->dl_entries[i].toc_entries = NULL;
+                    root->dl_entries[i].thumbnails = NULL;
+                    _parseManifestNode(root_element, &root->dl_entries[i]);
+                    xmlFreeDoc(doc);
+                }
             }
             X_FREE(data);
         }



More information about the libbluray-devel mailing list