Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
clsid2 committed Mar 9, 2024
1 parent 89d8515 commit 5faa90a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/filters/switcher/AudioSwitcher/StreamSwitcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1452,10 +1452,6 @@ STDMETHODIMP CStreamSwitcherFilter::Count(DWORD* pcStreams)
return S_OK;
}

// pdwGroup value is set to:
// - 0 if the track isn't controlled by any underlying IAMStreamSelect interface
// - 1 if the track is controlled by an underlying IAMStreamSelect interface and is not selected at that level
// - 2 if the track is controlled by an underlying IAMStreamSelect interface and is selected at that level
STDMETHODIMP CStreamSwitcherFilter::Info(long lIndex, AM_MEDIA_TYPE** ppmt, DWORD* pdwFlags, LCID* plcid, DWORD* pdwGroup, WCHAR** ppszName, IUnknown** ppObject, IUnknown** ppUnk)
{
CAutoLock cAutoLock(&m_csPins);
Expand Down Expand Up @@ -1514,7 +1510,8 @@ STDMETHODIMP CStreamSwitcherFilter::Info(long lIndex, AM_MEDIA_TYPE** ppmt, DWOR
bFound = true;

if (ppmt) {
*ppmt = CreateMediaType(&m_pOutput->CurrentMediaType());
// ToDo: if upstream filter is a decoder, then use audio mediatype of input pin of decoder
*ppmt = CreateMediaType(&m_pInput->CurrentMediaType());
}

if (pdwFlags) {
Expand Down

0 comments on commit 5faa90a

Please sign in to comment.