[vlc-devel] [PATCH] Win32 Vout: if a crop/aspect ratio is received, force the texture update
Jean-Baptiste Kempf
jb at videolan.org
Mon Mar 9 20:45:00 CET 2015
I believe this is fixing #5372 :)
On 09 Mar, Steve Lhomme wrote :
> ---
> modules/video_output/msw/common.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/modules/video_output/msw/common.c b/modules/video_output/msw/common.c
> index 1ebe08c..d4fcdf0 100644
> --- a/modules/video_output/msw/common.c
> +++ b/modules/video_output/msw/common.c
> @@ -575,17 +575,16 @@ int CommonControl(vout_display_t *vd, int query, va_list args)
> case VOUT_DISPLAY_CHANGE_SOURCE_ASPECT: /* const video_format_t *p_source */
> case VOUT_DISPLAY_CHANGE_SOURCE_CROP: { /* const video_format_t *p_source */
> const vout_display_cfg_t *cfg;
> - const video_format_t *source;
>
> if (query == VOUT_DISPLAY_CHANGE_SOURCE_CROP ||
> query == VOUT_DISPLAY_CHANGE_SOURCE_ASPECT) {
> + const video_format_t *source = va_arg(args, const video_format_t *);
> cfg = vd->cfg;
> - source = va_arg(args, const video_format_t *);
> + UpdateRects(vd, cfg, source, true);
> } else {
> cfg = va_arg(args, const vout_display_cfg_t *);
> - source = &vd->source;
> + UpdateRects(vd, cfg, NULL, false);
> }
> - UpdateRects(vd, cfg, source, false);
> return VLC_SUCCESS;
> }
> case VOUT_DISPLAY_CHANGE_WINDOW_STATE: { /* unsigned state */
> --
> 2.2.2
>
> _______________________________________________
> 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