vlc_linux/vlc-3.0.16/modules/access/dshow/filter.cpp
/****************************************************************************
 * Implementation of our dummy directshow enummediatypes class
 ****************************************************************************/
Implementation of our dummy directshow enummediatypes class
Implementation of our dummy directshow enummediatypes class
CaptureEnumMediaTypes::CaptureEnumMediaTypes( vlc_object_t *_p_input,
    ComPtr<CapturePin> _p_pin, CaptureEnumMediaTypes *pEnumMediaTypes )
  : p_input( _p_input ), p_pin( _p_pin ), i_ref( 1 )
{
    if( pEnumMediaTypes == NULL )
    {
        CopyMediaType(&cx_media_type, &p_pin->cx_media_type);
        i_position = 0;
    }
    else
    {
        CopyMediaType(&cx_media_type, &pEnumMediaTypes->cx_media_type);
        i_position = pEnumMediaTypes->i_position;
    }
}
CaptureEnumMediaTypes :: CaptureEnumMediaTypes ( vlc_object_t * _p_input , ComPtr < CapturePin > _p_pin , CaptureEnumMediaTypes * pEnumMediaTypes ) : p_input ( _p_input ) , p_pin ( _p_pin ) , i_ref ( 1 ) { if ( pEnumMediaTypes == NULL ) { CopyMediaType ( & cx_media_type , & p_pin -> cx_media_type ) ; i_position = 0 ; } else { CopyMediaType ( & cx_media_type , & pEnumMediaTypes -> cx_media_type ) ; i_position = pEnumMediaTypes -> i_position ; } }
Implementation of our dummy directshow enummediatypes class
Implementation of our dummy directshow enummediatypes class
/* Are we creating a new enumerator */