diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-05-04 22:12:55 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-05-06 18:33:16 +0300 |
commit | b68f9fef32971095836ea6bbeb2f12af417120d2 (patch) | |
tree | 46288d0356764318d595a946d22ca31eaf6b0101 /libvo/vo_xv.c | |
parent | 40f6ab5064a628dc11b79b5e571dc9444efac093 (diff) | |
download | mpv-b68f9fef32971095836ea6bbeb2f12af417120d2.tar.bz2 mpv-b68f9fef32971095836ea6bbeb2f12af417120d2.tar.xz |
cleanup: shut up more warnings
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r-- | libvo/vo_xv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index 67d1cffb95..6da354bd5a 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -527,7 +527,7 @@ static uint32_t draw_image(struct vo *vo, mp_image_t *mpi) if (mpi->flags & MP_IMGFLAG_DIRECT) // direct rendering: - ctx->current_buf = (int) (mpi->priv); // hack! + ctx->current_buf = (size_t)(mpi->priv); // hack! else if (mpi->flags & MP_IMGFLAG_DRAW_CALLBACK) ; // done else if (mpi->flags & MP_IMGFLAG_PLANAR) @@ -603,7 +603,7 @@ static uint32_t get_image(struct xvctx *ctx, mp_image_t *mpi) } } mpi->flags |= MP_IMGFLAG_DIRECT; - mpi->priv = (void *) ctx->current_buf; + mpi->priv = (void *)(size_t)ctx->current_buf; return VO_TRUE; } return VO_FALSE; |