From 1a8af89b7d09ad8a84410a3d8efe1a9f695cf9a7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 20 Aug 2016 14:11:35 +0200 Subject: vo: fix mismatching types in pointer operation run_control() dereferences an uint32_t as int. Whether this is allowed depends on what uint32_t is typedefed to (dereferencing an unsigned int as int should be fine). Fix it by always using int. The uint32_t type never really made sense. --- video/out/vo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vo.h') diff --git a/video/out/vo.h b/video/out/vo.h index a5280e5611..8fdb2ed1e8 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -341,7 +341,7 @@ struct mpv_global; struct vo *init_best_video_out(struct mpv_global *global, struct vo_extra *ex); int vo_reconfig(struct vo *vo, struct mp_image_params *p); -int vo_control(struct vo *vo, uint32_t request, void *data); +int vo_control(struct vo *vo, int request, void *data); bool vo_is_ready_for_frame(struct vo *vo, int64_t next_pts); void vo_queue_frame(struct vo *vo, struct vo_frame *frame); void vo_wait_frame(struct vo *vo); -- cgit v1.2.3