[vlc-devel] [PATCH] rdp: Support FreeRDP-1.2.0-beta1-android9.

Jean-Baptiste Kempf jb at videolan.org
Fri Feb 20 15:43:01 CET 2015


I reluctantly merged this patch.

I'm fed up with freeRDP project that understands nothing about API, ABI,
licenses and compatibility.

What would it have costed them to have an empty
freerdp_channels_global_init() and freerdp_channels_global_uninit()
placeholders?

They change their API for no good reason every minor revision ("because
it looks better"!)

I know it's not your fault, so I merged it, but grrr....



On 19 Feb, Vinson Lee wrote :
> Fix build errors.
> 
>   CC       access/librdp_plugin_la-rdp.lo
> access/rdp.c: In function ‘Open’:
> access/rdp.c:431:5: error: implicit declaration of function ‘freerdp_channels_global_init’ [-Werror=implicit-function-declaration]
>      freerdp_channels_global_init();
>      ^
> access/rdp.c: In function ‘Close’:
> access/rdp.c:507:5: error: implicit declaration of function ‘freerdp_channels_global_uninit’ [-Werror=implicit-function-declaration]
>      freerdp_channels_global_uninit();
>      ^
> 
> freerdp channels global functions were removed from FreeRDP repository
> in commit 2a82684521dc8b23ae92e284e866227e5194a7bb.
> 
> commit 2a82684521dc8b23ae92e284e866227e5194a7bb
> Author: Marc-André Moreau <marcandre.moreau at gmail.com>
> Date:   Wed Jun 11 16:27:31 2014 -0400
> 
>     channels: cleanup unused freerdp channels global functions
> 
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  modules/access/rdp.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/modules/access/rdp.c b/modules/access/rdp.c
> index 1dca8ae..769ba60 100644
> --- a/modules/access/rdp.c
> +++ b/modules/access/rdp.c
> @@ -428,7 +428,9 @@ static int Open( vlc_object_t *p_this )
>      if ( p_sys->f_fps <= 0 ) p_sys->f_fps = 1.0;
>      p_sys->i_frame_interval = 1000000 / p_sys->f_fps;
>  
> +#if FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR < 2
>      freerdp_channels_global_init();
> +#endif
>  
>      p_sys->p_instance = freerdp_new();
>      if ( !p_sys->p_instance )
> @@ -504,7 +506,9 @@ static void Close( vlc_object_t *p_this )
>  
>      freerdp_disconnect( p_sys->p_instance );
>      freerdp_free( p_sys->p_instance );
> +#if FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR < 2
>      freerdp_channels_global_uninit();
> +#endif
>  
>      if ( p_sys->p_block )
>          block_Release( p_sys->p_block );
> -- 
> 2.3.0
> 
> _______________________________________________
> 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