vo: do not check for events on unconfigured VO

fixes #741
This commit is contained in:
Martin Herkt 2014-04-25 04:58:15 +02:00
parent 26ce2e750d
commit 89a19aafd9
1 changed files with 3 additions and 1 deletions

View File

@ -449,7 +449,9 @@ void vo_flip_page(struct vo *vo, int64_t pts_us, int duration)
void vo_check_events(struct vo *vo)
{
vo_control(vo, VOCTRL_CHECK_EVENTS, NULL);
if (vo->config_ok) {
vo_control(vo, VOCTRL_CHECK_EVENTS, NULL);
}
}
void vo_seek_reset(struct vo *vo)