diff options
author | Underground78 <underground78@users.sourceforge.net> | 2014-05-04 17:28:34 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2014-05-05 01:44:57 +0400 |
commit | 1a9ac370053cf90d4226f3b619f773bf0d0069dc (patch) | |
tree | 29601c861f4a5ce287c73ea052f4a86f975f4d39 /src/filters/transform | |
parent | 8d183185e0055cefc545b119f1b6fd05bde21ba0 (diff) |
Factorize the code used to guess the subtitle name and use it for external PGS subtitles.
Diffstat (limited to 'src/filters/transform')
-rw-r--r-- | src/filters/transform/VSFilter/DirectVobSubFilter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/filters/transform/VSFilter/DirectVobSubFilter.cpp b/src/filters/transform/VSFilter/DirectVobSubFilter.cpp index 19d146b45..bc0382045 100644 --- a/src/filters/transform/VSFilter/DirectVobSubFilter.cpp +++ b/src/filters/transform/VSFilter/DirectVobSubFilter.cpp @@ -29,7 +29,6 @@ #include "Systray.h"
#include "../../../DSUtil/FileVersionInfo.h"
#include "../../../DSUtil/MediaTypes.h"
-#include "../../../DSUtil/PathUtils.h"
#include "../../../SubPic/MemSubPic.h"
#include "../../../SubPic/SubPicQueueImpl.h"
#include "../../../Subtitles/RLECodedSubtitle.h"
@@ -1496,7 +1495,7 @@ bool CDirectVobSubFilter::Open() if (!pSubStream) {
CAutoPtr<CPGSSubFile> pPSF(DEBUG_NEW CPGSSubFile(&m_csSubLock));
- if (pPSF && pPSF->Open(ret[i].fn, PathUtils::BaseName(ret[i].fn)) && pPSF->GetStreamCount() > 0) {
+ if (pPSF && pPSF->Open(ret[i].fn) && pPSF->GetStreamCount() > 0) {
pSubStream = pPSF.Detach();
}
}
|