struct hotkey *p_keys =
malloc( (libvlc_actions_count + 1) * sizeof (*p_keys) );
- /* Initialize from configuration */
+ /* Initialize from configuration */
for( size_t i = 0; i < libvlc_actions_count; i++ )
{
p_keys[i].psz_action = libvlc_actions[i].name;
p_keys[i].i_key = config_GetInt( p_libvlc,
libvlc_actions[i].name );
p_keys[i].i_action = libvlc_actions[i].value;
+#ifndef NDEBUG
+ if (i > 0
+ && strcmp(libvlc_actions[i-1].name, libvlc_actions[i].name) >= 0)
+ {
+ msg_Err(p_libvlc, "%s and %s are not ordered properly",
+ libvlc_actions[i-1].name, libvlc_actions[i].name);
+ abort();
+ }
+#endif
}
p_keys[libvlc_actions_count].psz_action = NULL;
p_keys[libvlc_actions_count].i_key = 0;
#ifdef WIN32
ShowConsole( true );
b_color = false; // don't put color control codes in a .txt file
+#else
+ if( !isatty( 1 ) )
+ b_color = false;
#endif
/* List all modules */