From bd230a8d47a789205c0dbdb63cf39130c44498cc Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 1 May 2014 14:29:43 +0200 Subject: 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. --- video/out/vo.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3