ffplay: ignore keypress events before a window is created
authorMarton Balint <cus@passwd.hu>
Mon, 11 Jun 2018 21:19:37 +0000 (23:19 +0200)
committerMarton Balint <cus@passwd.hu>
Wed, 20 Jun 2018 20:26:41 +0000 (22:26 +0200)
commite8050aa79152899dbe50d4fb31e9303db8818cc2
treebfcc4203a1109861a7b1f3919b3b643cf435c804
parentb1e0e216462a989a39e7b413aef6d32f8cedc154
ffplay: ignore keypress events before a window is created

Current ffplay code assumes that the read thread is in its main loop before any
key events are captured, but apparently on IOS even keypresses without a window
are forwared.

Fixes ticket #7252.

Signed-off-by: Marton Balint <cus@passwd.hu>
fftools/ffplay.c