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.
This commit is contained in:
wm4 2014-05-01 14:29:43 +02:00
parent a014a2402d
commit bd230a8d47
1 changed files with 1 additions and 0 deletions

View File

@ -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);