[vlc-devel] commit: Fixed a memory leak in aspect-ratio/crop/zoom/deinterlace hotkeys. (Laurent Aimar )
git version control
git at videolan.org
Tue Jul 22 00:27:46 CEST 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Jul 21 23:15:52 2008 +0200| [171934abd5615437ea05522e727e8c77bf1b07c8]
Fixed a memory leak in aspect-ratio/crop/zoom/deinterlace hotkeys.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=171934abd5615437ea05522e727e8c77bf1b07c8
---
modules/control/hotkeys.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index 98bb4c2..1ba9979 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 )
More information about the vlc-devel
mailing list