Permalink
Browse files

Revert "Speed up startup time for movies in split rar archives."

This reverts commit b0e3be0.
  • Loading branch information...
1 parent 4f7db4e commit 86a631184a7c1bc4ca3c401c1495cea771d945bb @fritsch fritsch committed Dec 31, 2016
Showing with 2 additions and 17 deletions.
  1. +2 −17 lib/UnrarXLib/volume.cpp
@@ -20,23 +20,8 @@ bool MergeArchive(Archive &Arc,ComprDataIO *DataIO,bool ShowFileName,char Comman
Arc.Close();
char NextName[NM];
- if(DataIO != NULL && (DataIO->m_iSeekTo > Arc.NewLhd.FullPackSize)){
- if (Arc.Volume && Arc.NotFirstVolume)
- VolNameToFirstName(Arc.FileName,NextName,(Arc.NewMhd.Flags & MHD_NEWNUMBERING));
- else
- strcpy(NextName,Arc.FileName);
-
- Int64 FastSeek = 0;
- while(FastSeek+Arc.NewLhd.FullPackSize < DataIO->m_iSeekTo){
- NextVolumeName(NextName,(Arc.NewMhd.Flags & MHD_NEWNUMBERING)==0 || Arc.OldFormat);
- FastSeek += Arc.NewLhd.FullPackSize;
- }
- DataIO->CurUnpRead = FastSeek;
-
- }else{
- strcpy(NextName,Arc.FileName);
- NextVolumeName(NextName,(Arc.NewMhd.Flags & MHD_NEWNUMBERING)==0 || Arc.OldFormat);
- }
+ strcpy(NextName,Arc.FileName);
+ NextVolumeName(NextName,(Arc.NewMhd.Flags & MHD_NEWNUMBERING)==0 || Arc.OldFormat);
#if !defined(SFX_MODULE) && !defined(RARDLL)
bool RecoveryDone=false;

0 comments on commit 86a6311

Please sign in to comment.