simplified segment::load()

Change-Id: I92793d405ee24f2d94a6a6a251a5bada4f0d40a8
diff --git a/mkvparser.cpp b/mkvparser.cpp
index 7797c45..48371e4 100644
--- a/mkvparser.cpp
+++ b/mkvparser.cpp
@@ -2375,6 +2375,18 @@
     assert(m_pInfo);

     assert(m_pTracks);

 

+#if 1

+    for (;;)

+    {

+        const int status = LoadCluster();

+

+        if (status < 0)  //error

+            return status;

+

+        if (status >= 1)  //no more clusters

+            return 0;

+    }

+#else

     long long total, avail;

 

     long status = m_pReader->Length(&total, &avail);

@@ -2544,6 +2556,7 @@
 #endif

 

     return 0;

+#endif  //xxx

 }