mirror of https://github.com/mpv-player/mpv
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:
parent
a014a2402d
commit
bd230a8d47
|
@ -386,6 +386,7 @@ void vo_queue_image(struct vo *vo, struct mp_image *mpi)
|
||||||
assert(mpi);
|
assert(mpi);
|
||||||
if (!vo->config_ok)
|
if (!vo->config_ok)
|
||||||
return;
|
return;
|
||||||
|
assert(mp_image_params_equals(vo->params, &mpi->params));
|
||||||
mpi = mp_image_new_ref(mpi);
|
mpi = mp_image_new_ref(mpi);
|
||||||
if (vo->driver->filter_image)
|
if (vo->driver->filter_image)
|
||||||
mpi = vo->driver->filter_image(vo, mpi);
|
mpi = vo->driver->filter_image(vo, mpi);
|
||||||
|
|
Loading…
Reference in New Issue