diff options
author | wm4 <wm4@nowhere> | 2013-03-28 21:39:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-03-28 21:46:18 +0100 |
commit | 8d7858dd9d10181e4cb812827f1f631d06fc779e (patch) | |
tree | 1595e7d4c265652634c58cdc85ed128564efbab3 /video/out/vo.c | |
parent | 7f64a1fde982a440eb811e72911bdea5ad9dff2f (diff) | |
download | mpv-8d7858dd9d10181e4cb812827f1f631d06fc779e.tar.bz2 mpv-8d7858dd9d10181e4cb812827f1f631d06fc779e.tar.xz |
vo: rename vo_draw_image to vo_queue_image
Diffstat (limited to 'video/out/vo.c')
-rw-r--r-- | video/out/vo.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/video/out/vo.c b/video/out/vo.c index fcc50713c9..753feaefeb 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -138,21 +138,18 @@ int vo_control(struct vo *vo, uint32_t request, void *data) return vo->driver->control(vo, request, data); } -// Return -1 if driver appears not to support a draw_image interface, -// 0 otherwise (whether the driver actually drew something or not). -int vo_draw_image(struct vo *vo, struct mp_image *mpi) +void vo_queue_image(struct vo *vo, struct mp_image *mpi) { if (!vo->config_ok) - return 0; + return; if (vo->driver->buffer_frames) { vo->driver->draw_image(vo, mpi); - return 0; + return; } vo->frame_loaded = true; vo->next_pts = mpi->pts; assert(!vo->waiting_mpi); vo->waiting_mpi = mp_image_new_ref(mpi); - return 0; } int vo_redraw_frame(struct vo *vo) |