MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / GetSideData

Method GetSideData

Source/MediaSampleSideData.cpp:132–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132STDMETHODIMP CMediaSampleSideData::GetSideData(GUID guidType, const BYTE **pData, size_t *pSize)
133{
134 if (!pData || !pSize)
135 return E_POINTER;
136
137 CAutoLock Lock(&m_csSideData);
138
139 auto it = m_SideData.find(guidType);
140 if (it != m_SideData.end())
141 {
142 *pData = it->second.pData;
143 *pSize = it->second.size;
144
145 return S_OK;
146 }
147
148 return E_FAIL;
149}

Callers 2

CopySampleMethod · 0.80
CopySampleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected