summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-20 21:35:45 +0200
committerwm4 <wm4@nowhere>2014-08-20 21:35:45 +0200
commit7758c15e95c1cc4b16ca309e0760e51aad423b29 (patch)
tree0f132495d9a9e4fe20f333986f74a0e9c0223965 /player/playloop.c
parent09897bed7f6905427dd35196b3c17aa7d3d066ab (diff)
downloadmpv-7758c15e95c1cc4b16ca309e0760e51aad423b29.tar.bz2
mpv-7758c15e95c1cc4b16ca309e0760e51aad423b29.tar.xz
video: don't assume query_format is thread-safe
Although it's probably safe for most VOs, there's no guarantee.
Diffstat (limited to 'player/playloop.c')
-rw-r--r--player/playloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/playloop.c b/player/playloop.c
index a8c47d8e66..f7f92a2eda 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -771,7 +771,7 @@ void handle_force_window(struct MPContext *mpctx, bool reconfig)
// Pick whatever works
int config_format = 0;
for (int fmt = IMGFMT_START; fmt < IMGFMT_END; fmt++) {
- if (vo->driver->query_format(vo, fmt)) {
+ if (vo_query_format(vo, fmt)) {
config_format = fmt;
break;
}