diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2011-06-30 10:13:41 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2011-06-30 10:13:41 +0400 |
commit | 1dc44f50ad74313ffb8c8c4787db00b1efc0fb74 (patch) | |
tree | aca852656303d39ddb1aba6248093cb81897198c /src/filters/parser/MpegSplitter | |
parent | bc699287d322a3175d4b0ec1a790125ecb9129f6 (diff) |
Fix : crash in MPEGSplitter when run Info() method from a third-party applications, thanks to Kinjal.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3291 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/MpegSplitter')
-rw-r--r-- | src/filters/parser/MpegSplitter/MpegSplitter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/filters/parser/MpegSplitter/MpegSplitter.cpp b/src/filters/parser/MpegSplitter/MpegSplitter.cpp index 24c72e32c..8561fc708 100644 --- a/src/filters/parser/MpegSplitter/MpegSplitter.cpp +++ b/src/filters/parser/MpegSplitter/MpegSplitter.cpp @@ -1327,7 +1327,9 @@ STDMETHODIMP CMpegSplitterFilter::Info(long lIndex, AM_MEDIA_TYPE** ppmt, DWORD* if (i == CMpegSplitterFile::subpic && s.pid == NO_SUBTITLE_PID) {
str = NO_SUBTITLE_NAME;
- *plcid = (LCID)LCID_NOSUBTITLES;
+ if(plcid) {
+ *plcid = (LCID)LCID_NOSUBTITLES;
+ }
} else {
int iProgram;
const CHdmvClipInfo::Stream *pClipInfo;
|