1
mirror of https://github.com/mpv-player/mpv synced 2024-11-03 03:19:24 +01:00

osx: fix build

adapt the osx VOs to build against the latest changes.
This commit is contained in:
Stefano Pigozzi 2012-08-08 21:11:43 +02:00
parent 531778d056
commit 7fd43b0bcd
2 changed files with 3 additions and 3 deletions

View File

@ -232,7 +232,7 @@ static void draw_osd(struct vo *vo, struct osd_state *osd_s)
struct osd_p *osd = p->osd;
GL *gl = p->mpglctx->gl;
if (vo_osd_has_changed()) {
if (vo_osd_has_changed(osd_s)) {
clearOSD(vo);
osd_draw_text_ext(osd_s, vo->dwidth, vo->dheight, 0, 0, 0, 0,
p->image_width, p->image_height, create_osd_texture,
@ -465,5 +465,5 @@ const struct vo_driver video_out_corevideo = {
.flip_page = flip_page,
.check_events = check_events,
.uninit = uninit,
.privsize = sizeof(struct priv),
.priv_size = sizeof(struct priv),
};

View File

@ -261,7 +261,7 @@ const struct vo_driver video_out_sharedbuffer = {
.check_events = check_events,
.uninit = uninit,
.draw_osd = draw_osd,
.privsize = sizeof(struct priv),
.priv_size = sizeof(struct priv),
.options = (const struct m_option[]) {
OPT_STRING("buffer_name", buffer_name, 0, OPTDEF_STR("mplayerosx")),
{NULL},