simplified segment::load()

Change-Id: I92793d405ee24f2d94a6a6a251a5bada4f0d40a8
This commit is contained in:
matthewjheaney 2012-03-07 10:47:26 -05:00
parent 484c71d875
commit 379839bedc

View File

@ -2375,6 +2375,18 @@ long Segment::Load()
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 @@ long Segment::Load()
#endif
return 0;
#endif //xxx
}