From 171934abd5615437ea05522e727e8c77bf1b07c8 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Mon, 21 Jul 2008 23:15:52 +0200 Subject: [PATCH] Fixed a memory leak in aspect-ratio/crop/zoom/deinterlace hotkeys. --- modules/control/hotkeys.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c index 98bb4c234f..1ba9979748 100644 --- a/modules/control/hotkeys.c +++ b/modules/control/hotkeys.c @@ -568,6 +568,8 @@ static void Run( intf_thread_t *p_intf ) vout_OSDMessage( VLC_OBJECT(p_input), DEFAULT_CHAN, _("Aspect ratio: %s"), text_list.p_list->p_values[i].psz_string ); + + var_Change( p_vout, "aspect-ratio", VLC_VAR_FREELIST, &val_list, &text_list ); } free( val.psz_string ); } @@ -594,6 +596,8 @@ static void Run( intf_thread_t *p_intf ) vout_OSDMessage( VLC_OBJECT(p_input), DEFAULT_CHAN, _("Crop: %s"), text_list.p_list->p_values[i].psz_string ); + + var_Change( p_vout, "crop", VLC_VAR_FREELIST, &val_list, &text_list ); } free( val.psz_string ); } @@ -620,6 +624,8 @@ static void Run( intf_thread_t *p_intf ) vout_OSDMessage( VLC_OBJECT(p_input), DEFAULT_CHAN, _("Deinterlace mode: %s"), text_list.p_list->p_values[i].psz_string ); + + var_Change( p_vout, "deinterlace", VLC_VAR_FREELIST, &val_list, &text_list ); } free( val.psz_string ); } @@ -650,6 +656,8 @@ static void Run( intf_thread_t *p_intf ) vout_OSDMessage( VLC_OBJECT(p_input), DEFAULT_CHAN, _("Zoom mode: %s"), text_list.p_list->p_values[i].var.psz_name ); + + var_Change( p_vout, "zoom", VLC_VAR_FREELIST, &val_list, &text_list ); } } else if( i_action == ACTIONID_CROP_TOP && p_vout ) -- 2.39.2