Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2012-10-20 12:11:27 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2012-10-20 12:11:27 +0400
commit8fc2abc1922c4d319e7c80de199ad1d82d089e9d (patch)
treef46221d987f1c106f6efac55b151740fa63308a6 /decoder/LAVVideo
parentff9099febfe59761565bfe73774d0cafa2fce043 (diff)
Only enable subtitle input for DVDs
Diffstat (limited to 'decoder/LAVVideo')
-rw-r--r--decoder/LAVVideo/LAVVideo.cpp2
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);