[vlc-commits] Support for newest freerdp snapshot

Paweł Stankowski git at videolan.org
Wed Nov 19 14:03:45 CET 2014


vlc | branch: master | Paweł Stankowski <aambitny at gmail.com> | Wed Nov 19 02:03:08 2014 +0100| [b2cdcba9bfd832760679b12960ea11bfeaf84256] | committer: Jean-Baptiste Kempf

Support for newest freerdp snapshot

Support for 24bpp was removed from freerdp repository in commit
02c1bf14ce1f3ad2199a349066548977916d9c06.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b2cdcba9bfd832760679b12960ea11bfeaf84256
---

 modules/access/rdp.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/modules/access/rdp.c b/modules/access/rdp.c
index c48ae99..1dca8ae 100644
--- a/modules/access/rdp.c
+++ b/modules/access/rdp.c
@@ -248,7 +248,13 @@ static bool postConnectHandler( freerdp *p_instance )
     p_instance->update->BeginPaint = beginPaintHandler;
     p_instance->update->EndPaint = endPaintHandler;
 
-    gdi_init( p_instance, CLRBUF_16BPP | CLRBUF_24BPP | CLRBUF_32BPP, NULL );
+    gdi_init( p_instance,
+                CLRBUF_16BPP |
+#if defined(FREERDP_VERSION_MAJOR) && defined(FREERDP_VERSION_MINOR) && \
+    !(FREERDP_VERSION_MAJOR > 1 || (FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR >= 2))
+                CLRBUF_24BPP |
+#endif
+                CLRBUF_32BPP, NULL );
 
     desktopResizeHandler( p_instance->context );
     return true;



More information about the vlc-commits mailing list