[vlc-devel] [PATCH] rdp: Fix build with FreeRDP 2.0.0.

Jean-Baptiste Kempf jb at videolan.org
Mon Nov 30 10:32:21 CET 2015


Can someone tell them to stop changing their API every other day?

On 30 Nov, Vinson Lee wrote :
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  modules/access/rdp.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/modules/access/rdp.c b/modules/access/rdp.c
> index d9d05a2..83a4dd3 100644
> --- a/modules/access/rdp.c
> +++ b/modules/access/rdp.c
> @@ -46,7 +46,7 @@
>  #endif
>  
>  #if !defined(FREERDP_VERSION_MAJOR) || \
> -    (defined(FREERDP_VERSION_MAJOR) && !(FREERDP_VERSION_MAJOR >= 1 && FREERDP_VERSION_MINOR >= 1 ))
> +    (defined(FREERDP_VERSION_MAJOR) && !(FREERDP_VERSION_MAJOR > 1 || (FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR >= 1)))
>  # define SoftwareGdi sw_gdi
>  # define Fullscreen fullscreen
>  # define ServerHostname hostname
> @@ -237,7 +237,7 @@ static bool postConnectHandler( freerdp *p_instance )
>      vlcrdp_context_t * p_vlccontext = (vlcrdp_context_t *) p_instance->context;
>  
>      msg_Dbg( p_vlccontext->p_demux, "connected to desktop %dx%d (%d bpp)",
> -#if defined(FREERDP_VERSION_MAJOR)  && (FREERDP_VERSION_MAJOR >= 1 && FREERDP_VERSION_MINOR >= 1 )
> +#if defined(FREERDP_VERSION_MAJOR) && (FREERDP_VERSION_MAJOR > 1 || (FREERDP_VERSION_MAJOR == 1 && FREERDP_MINOR_VERSION >= 1))
>               p_instance->settings->DesktopWidth,
>               p_instance->settings->DesktopHeight,
>               p_instance->settings->ColorDepth
> -- 
> 2.6.3
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

-- 
With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device


More information about the vlc-devel mailing list