Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
fix: return failed if unable to handle result in IAMStreamSelect ::Info
Browse files Browse the repository at this point in the history
fixes #23
  • Loading branch information
Masaiki committed May 12, 2024
1 parent e9fcc88 commit d3345fb
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/filters/transform/vsfilter/xy_sub_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,7 @@ STDMETHODIMP XySubFilter::Info(long lIndex, AM_MEDIA_TYPE** ppmt, DWORD* pdwFlag
//{
// *ppmt = CreateMediaType(&m_pSubtitleInputPin[i]->m_mt);
//}
return E_INVALIDARG;
}

if(pdwFlags)
Expand Down Expand Up @@ -1255,9 +1256,17 @@ STDMETHODIMP XySubFilter::Info(long lIndex, AM_MEDIA_TYPE** ppmt, DWORD* pdwFlag
}
}

if(ppObject) *ppObject = NULL;
if(ppObject)
{
*ppObject = NULL;
return E_INVALIDARG;
}

if(ppUnk) *ppUnk = NULL;
if(ppUnk)
{
*ppUnk = NULL;
return E_INVALIDARG;
}

return hr;
}
Expand Down

0 comments on commit d3345fb

Please sign in to comment.