summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-01 14:29:43 +0200
committerwm4 <wm4@nowhere>2014-05-02 01:08:05 +0200
commitbd230a8d47a789205c0dbdb63cf39130c44498cc (patch)
treecb5fa4602498d0af644026efa2f034facf666661
parenta014a2402df29db34bddd8f8899941618e1275bd (diff)
downloadmpv-bd230a8d47a789205c0dbdb63cf39130c44498cc.tar.bz2
mpv-bd230a8d47a789205c0dbdb63cf39130c44498cc.tar.xz
vo: verify format of queued image
Currently, only the configured format is accepted, so assert that the playback core code (which handles format changes) is correct.
-rw-r--r--video/out/vo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 6c0cb44c14..2372ce36b0 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -386,6 +386,7 @@ void vo_queue_image(struct vo *vo, struct mp_image *mpi)
assert(mpi);
if (!vo->config_ok)
return;
+ assert(mp_image_params_equals(vo->params, &mpi->params));
mpi = mp_image_new_ref(mpi);
if (vo->driver->filter_image)
mpi = vo->driver->filter_image(vo, mpi);