Commit d3e682d2 authored by David Fuhrmann's avatar David Fuhrmann

hotkeys: Set sub-text-scale variable on playlist level

This makes sure it outlives vout instances and is valid for the
whole playlist session.
hotkeys: Set sub-text-scale variable on playlist level

This makes sure it outlives vout instances and is valid for the
whole playlist session.
parent 69ff160a
......@@ -1343,11 +1343,11 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
}
else
{
i_scale = var_GetInteger( p_vout, "sub-text-scale" );
i_scale = var_GetInteger( p_playlist, "sub-text-scale" );
i_scale += ((i_action == ACTIONID_SUBTITLE_TEXT_SCALE_UP) ? 1 : -1) * 25;
i_scale = VLC_CLIP( i_scale, 10, 500 );
}
var_SetInteger( p_vout, "sub-text-scale", i_scale );
var_SetInteger( p_playlist, "sub-text-scale", i_scale );
DisplayMessage( p_vout, _( "Subtitle text scale %d%%" ), i_scale );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment