[vlc-devel] [PATCH] access: add Remote Desktop viewer module

Edward Wang edward.c.wang at compdigitec.com
Thu Feb 21 21:23:27 CET 2013


On 13-02-21 08:38 AM, Francois Cartegnie <fcvlcdev at free.fr> wrote:
> +#define RDP_USER N_("RDP auth username")
> +#define RDP_PASSWORD N_("RDP auth password")
> +#define RDP_PASSWORD_LONGTEXT N_("RDP Password")
"Password for the RDP user"
> +#define RDP_ENCRYPT N_("Encrypted connexion")
connection
> +#define RDP_FPS N_("Frame rate")
> +#define RDP_FPS_LONGTEXT N_("Acquisition rate (in fps)")
> +
> +#define CFG_PREFIX "rdp-"
> +
> +    freerdp_channels_global_init();
> +
> +    p_sys->p_instance = freerdp_new();
> +    if ( !p_sys->p_instance )
> +    {
> +        msg_Err( p_demux, "rdp instanciation error" );
Perhaps we should notify the user here?
> +        free( p_sys );
> +        p_demux->p_sys = NULL;
> +        return VLC_EGENERIC;
> +    }
> +
> +    p_sys->p_instance->PreConnect = preConnectHandler;
> +    p_sys->p_instance->PostConnect = postConnectHandler;
> +    p_sys->p_instance->Authenticate = authenticateHandler;
> +
Regards,
         Edward Wang



More information about the vlc-devel mailing list