diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-10-20 12:11:27 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-10-20 12:11:27 +0400 |
commit | 8fc2abc1922c4d319e7c80de199ad1d82d089e9d (patch) | |
tree | f46221d987f1c106f6efac55b151740fa63308a6 /decoder/LAVVideo | |
parent | ff9099febfe59761565bfe73774d0cafa2fce043 (diff) |
Only enable subtitle input for DVDs
Diffstat (limited to 'decoder/LAVVideo')
-rw-r--r-- | decoder/LAVVideo/LAVVideo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/LAVVideo/LAVVideo.cpp b/decoder/LAVVideo/LAVVideo.cpp index e66e46b6..0d0a007d 100644 --- a/decoder/LAVVideo/LAVVideo.cpp +++ b/decoder/LAVVideo/LAVVideo.cpp @@ -757,7 +757,7 @@ HRESULT CLAVVideo::CompleteConnect(PIN_DIRECTION dir, IPin *pReceivePin) if (dir == PINDIR_OUTPUT) { hr = m_Decoder.PostConnect(pReceivePin); } else if (dir == PINDIR_INPUT) { - if (m_pInput->CurrentMediaType().subtype == MEDIASUBTYPE_MPEG2_VIDEO && !m_pSubtitleInput) { + if (m_pInput->CurrentMediaType().subtype == MEDIASUBTYPE_MPEG2_VIDEO && !m_pSubtitleInput && (m_dwDecodeFlags & LAV_VIDEO_DEC_FLAG_DVD)) { m_pSubtitleInput = new CLAVVideoSubtitleInputPin(TEXT("CLAVVideoSubtitleInputPin"), this, &m_csFilter, &hr, L"Subtitle Input"); ASSERT(SUCCEEDED(hr)); m_SubtitleConsumer = new CLAVSubtitleConsumer(this); |