From 2bcfe1e077fe043751d3f7c73c82be761629419f Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Thu, 3 Apr 2008 06:25:41 +0300 Subject: Add new video driver API Create new video driver API that has a per-instance context structure and does not rely on keeping status in global or static variables. Existing drivers are not yet converted to this API; instead there is a wrapper which translates calls to them. In the new API, an old API call vo_functions->xyz(args) is generally replaced by vo_xyz(vo_instance, args). The changes to keep the vesa, dxr2 and xover drivers compiling have not been tested. --- mp_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mp_core.h') diff --git a/mp_core.h b/mp_core.h index 57d32ffafa..e6149266c2 100644 --- a/mp_core.h +++ b/mp_core.h @@ -59,7 +59,7 @@ typedef struct MPContext { demux_stream_t *d_video; demux_stream_t *d_sub; mixer_t mixer; - const vo_functions_t *video_out; + struct vo *video_out; // Frames buffered in the vo ready to flip. Currently always 0 or 1. // This is really a vo variable but currently there's no suitable vo // struct. -- cgit v1.2.3