vlc-2.2.0-rdp-1.2.0.patch 929 B

123456789101112131415161718192021222324
  1. --- a/modules/access/rdp.c 2014-11-22 01:40:52.044973648 -0800
  2. +++ b/modules/access/rdp.c 2014-11-22 01:36:44.291975380 -0800
  3. @@ -399,7 +404,9 @@
  4. if ( p_sys->f_fps <= 0 ) p_sys->f_fps = 1.0;
  5. p_sys->i_frame_interval = 1000000 / p_sys->f_fps;
  6. +#if defined(FREERDP_VERSION_MAJOR) && defined(FREERDP_VERSION_MINOR) && !(FREERDP_VERSION_MAJOR > 1 || (FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR >= 2))
  7. freerdp_channels_global_init();
  8. +#endif
  9. p_sys->p_instance = freerdp_new();
  10. if ( !p_sys->p_instance )
  11. @@ -475,7 +482,10 @@
  12. freerdp_disconnect( p_sys->p_instance );
  13. freerdp_free( p_sys->p_instance );
  14. +
  15. +#if defined(FREERDP_VERSION_MAJOR) && defined(FREERDP_VERSION_MINOR) && !(FREERDP_VERSION_MAJOR > 1 || (FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR >= 2))
  16. freerdp_channels_global_uninit();
  17. +#endif
  18. if ( p_sys->p_block )
  19. block_Release( p_sys->p_block );