[vlc-devel] [PATCH] Win32 Vout: if a crop/aspect ratio is received, force the texture update
Steve Lhomme
robux4 at videolabs.io
Mon Mar 9 16:19:35 CET 2015
Without this patch, if you change the aspect ratio and the window has
not moved or been resized, nothing happens, the aspect ratio is not
applied.
On Mon, Mar 9, 2015 at 4:11 PM, Steve Lhomme <robUx4 at videolabs.io> 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
More information about the vlc-devel
mailing list