aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-09-19 17:40:22 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-10-07 00:11:34 (GMT)
commit85b0051b12a3862c92219b33f7846c5fb67be679 (patch)
tree6e35b30552fe6e892201e93d6137155d760723e8
parent53bbd472ec3d8fefe9c621a35516caebdfe5257e (diff)
Fix crash on "tvtime-command set_input_width 720"
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--src/commands.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/commands.c b/src/commands.c
index 9c050e7..eb31396 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -2393,12 +2393,10 @@ void commands_handle( commands_t *cmd, int tvtime_cmd, const char *arg )
case TVTIME_SET_INPUT_WIDTH:
cmd->newinputwidth = atoi( arg );
if( cmd->osd ) {
- const char *curname = menu_get_name( cmd->curusermenu );
menu_t *sharpmenu = commands_get_menu( cmd, "hres" );
char message[ 128 ];
int maxw = cmd->vidin? videoinput_get_maxwidth( cmd->vidin ) : 0;
reset_inputwidth_menu( sharpmenu, cmd->newinputwidth, maxw );
- curname = menu_get_name( cmd->curusermenu );
commands_refresh_menu( cmd );
snprintf( message, sizeof( message ),
_("Horizontal resolution will be %d pixels on restart."),

Privacy Policy