vlc_linux/vlc-3.0.16/modules/access/dshow/filter.cpp
/**
 * Returns the complete queue of samples that have been received so far.
 * Lock the p_sys->lock before calling this function.
 * @param samples_queue [out] Empty queue that will get all elements from
 * the pin queue.
 * @return S_OK if a sample was available, S_FALSE if no sample was
 * available
 */
Returns the complete queue of samples that have been received so far.
Lock the p_sys->lock before calling this function.
@param samples_queue [out] Empty queue that will get all elements from
the pin queue.
@return S_OK if a sample was available, S_FALSE if no sample was
available
Returns the complete queue of samples that have been received so far . Lock the p_sys - > lock before calling this function . @param samples_queue [ out ] Empty queue that will get all elements from the pin queue . @return S_OK if a sample was available S_FALSE if no sample was available
HRESULT CapturePin::CustomGetSamples( std::deque<VLCMediaSample> &external_queue )
{
#if 0 
    msg_Dbg( p_input, "CapturePin::CustomGetSamples: %d samples in the queue", samples_queue.size());
#endif
    if( !samples_queue.empty() )
    {
        external_queue.swap(samples_queue);
        return S_OK;
    }
    return S_FALSE;
}
HRESULT CapturePin :: CustomGetSamples ( std :: deque < VLCMediaSample > & external_queue ) { #if 0 msg_Dbg ( p_input , " " , samples_queue . size ( ) ) ; #endif if ( ! samples_queue . empty ( ) ) { external_queue . swap ( samples_queue ) ; return S_OK ; } return S_FALSE ; }
Returns the complete queue of samples that have been received so far.
Returns the complete queue of samples that have been received so far .
//def DEBUG_DSHOW