[vlc-commits] [Git][videolan/vlc][master] access/rdp: remove always false test
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Sep 27 09:29:24 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
768f6df5 by Steve Lhomme at 2025-09-27T09:15:53+00:00
access/rdp: remove always false test
The default case initializes the chroma to VLC_CODEC_RGB565LE.
So it's always using a known+set chroma.
Added in 1674af48373d66f81d1cb7e6fef8c70253a12fe9.
- - - - -
1 changed file:
- modules/access/rdp.c
Changes:
=====================================
modules/access/rdp.c
=====================================
@@ -143,7 +143,7 @@ static BOOL desktopResizeHandler( rdpContext *p_context )
p_sys->es = NULL;
}
- vlc_fourcc_t i_chroma = 0;
+ vlc_fourcc_t i_chroma;
/* Now init and fill es format */
switch ( p_gdi->dstFormat )
{
@@ -194,9 +194,6 @@ static BOOL desktopResizeHandler( rdpContext *p_context )
break;
}
- if (unlikely(i_chroma == 0))
- return FALSE;
-
es_format_t fmt;
es_format_Init( &fmt, VIDEO_ES, i_chroma );
video_format_Setup( &fmt.video, i_chroma, p_gdi->width, p_gdi->height,
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/768f6df5fca6d69212b292be2050ec35369def34
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/768f6df5fca6d69212b292be2050ec35369def34
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list