The ucmj delineates what unbecoming of an officer is, it can be described as nebulous, as it covers quite a bit, a portion below; of article 133 follows;
(3) Examples of offenses. Instances of violation of this article include knowingly making a false official statement; dishonorable failure to pay a debt; cheating on an exam; opening and reading a letter of another without authority; using insulting or defamatory language to another officer in that officer’s presence or about that officer to other military persons; being drunk and disorderly in a public place; public association with known prostitutes; committing or attempting to commit a crime involving moral turpitude; and failing without good cause to support the officer’s family.
emphasis mine......
or article 89-
Punitive Articles of the UCMJ
Article 89—Disrespect toward a superior commissioned officer
Elements.
(1) That the accused did or omitted certain acts or used certain language to or concerning a certain commissioned officer;
(2) That such behavior or language was directed toward that officer;
(3) That the officer toward whom the acts, omissions, or words were directed was the superior commissioned officer of the accused;
(4) That the accused then knew that the commissioned officer toward whom the acts, omissions, or words were directed was the accused’s superior commissioned officer; and
(5) That, under the circumstances, the behavior or language was disrespectful to that commissioned officer.
Obama is not 'commissioned' per se' but he is the c in c, its an example of how this type of thing is in fact frowned upon and a chargeable offense.
McCrystal knows better.