summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-03 17:23:01 +0100
committerwm4 <wm4@nowhere>2015-01-03 17:23:01 +0100
commita7dddbacc6cc8cafb5aaf0cf7d8e36d2a759a6e9 (patch)
treed6760ddd04fc95429dafdfa2afa25f741bbe1edc /video/out/vo.h
parent411109f484e7c8537540df414e92015d94a7ca98 (diff)
downloadmpv-a7dddbacc6cc8cafb5aaf0cf7d8e36d2a759a6e9.tar.bz2
mpv-a7dddbacc6cc8cafb5aaf0cf7d8e36d2a759a6e9.tar.xz
video: batch query_format calls
There are currently 568 pixel formats (actually fewer, but the namespace is this big), and for each format elaborate synchronization was done to call it synchronously on the VO. This is completely unnecessary, and we can do with just a single call.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 3d4d654738..383f47c7d7 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -319,7 +319,7 @@ void vo_seek_reset(struct vo *vo);
void vo_destroy(struct vo *vo);
void vo_set_paused(struct vo *vo, bool paused);
int64_t vo_get_drop_count(struct vo *vo);
-int vo_query_format(struct vo *vo, int format);
+void vo_query_formats(struct vo *vo, uint8_t *list);
void vo_event(struct vo *vo, int event);
int vo_query_and_reset_events(struct vo *vo, int events);