osd: fix OSD redrawing after removing external overlays

This commit is contained in:
wm4 2016-09-20 15:22:26 +02:00
parent 6b5e5b6843
commit fe872f5688
1 changed files with 2 additions and 0 deletions

View File

@ -490,6 +490,8 @@ void osd_set_external(struct osd_state *osd, void *id, int res_x, int res_y,
int index = entry - &obj->externals[0];
destroy_external(entry);
MP_TARRAY_REMOVE_AT(obj->externals, obj->num_externals, index);
obj->changed = true;
osd->want_redraw_notification = true;
goto done;
}