Microsoft Windows CE 3.0  

COutputQueue::IsSpecialSample

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Determines if a sample is one of the special control samples (containing no data).

BOOL IsSpecialSample(I
MediaSample
*pSample
);

Parameters

pSample
Pointer to the sample to be passed to the connected input pin.

Return Values

Returns one of the following values.

TRUE pSampleis a special control sample.
FALSE pSampleis an IMediaSampleinterface.

Remarks

Special control samples are queued in line with the data by methods (such as COutputQueue::EOS) that require processing once all queued data has been delivered. The COutputQueue::ThreadProcmember function detects these special samples on the queue by using IsSpecialSampleand processes them appropriately.

A special sample is one of following types and contains no media data.

  • EOS_PACKET
  • NEW_SEGMENT
  • RESET_PACKET
  • SEND_PACKET

    Special control samples are relevant only if you plan to change or extend the default base class implementation of COutputQueuein a derived class. Normal use of the COutputQueueclass does not require the use of control samples.