From 03bef3adfd846fc1dda88a888df972f4b501fb40 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 31 Jul 2013 21:44:21 +0200 Subject: video/out: use new mp_msg stuff for vo.c and vo_opengl The first step; also serves as example. --- video/out/vo.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'video/out/vo.h') diff --git a/video/out/vo.h b/video/out/vo.h index 3abb8fca58..1a57ad2a25 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -232,8 +232,12 @@ struct vo_driver { }; struct vo { - int config_ok; // Last config call was successful? - int config_count; // Total number of successful config calls + struct { + struct mp_log *log; // Using "[vo]" as prefix + } vo_log; + struct mp_log *log; // Using e.g. "[vo/vdpau]" as prefix + int config_ok; // Last config call was successful? + int config_count; // Total number of successful config calls bool untimed; // non-interactive, don't do sleep calls in playloop @@ -281,7 +285,8 @@ struct vo { char *window_title; }; -struct vo *init_best_video_out(struct mp_vo_opts *opts, +struct mpv_global; +struct vo *init_best_video_out(struct mpv_global *global, struct input_ctx *input_ctx, struct encode_lavc_context *encode_lavc_ctx); int vo_reconfig(struct vo *vo, struct mp_image_params *p, int flags); -- cgit v1.2.3