diff options
author | sfan5 <sfan5@live.de> | 2023-11-23 20:46:25 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-11-24 10:04:55 +0100 |
commit | aa362fdcf440fb747c3aeb377ce51d91cc05f38b (patch) | |
tree | 3a363fc3e2d4d52d1a02382e5d815be2aba455a7 /video/filter/vf_vdpaupp.c | |
parent | e22a2f04833852ce825eb7c1235d9bdaaa9b2397 (diff) | |
download | mpv-aa362fdcf440fb747c3aeb377ce51d91cc05f38b.tar.bz2 mpv-aa362fdcf440fb747c3aeb377ce51d91cc05f38b.tar.xz |
various: replace some OOM handling
We prefer to fail fast rather than degrade in unpredictable ways.
The example in sub/ is particularly egregious because the code just
skips the work it's meant to do when an allocation fails.
Diffstat (limited to 'video/filter/vf_vdpaupp.c')
-rw-r--r-- | video/filter/vf_vdpaupp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/filter/vf_vdpaupp.c b/video/filter/vf_vdpaupp.c index 0519f5a8b8..b8a5d4194f 100644 --- a/video/filter/vf_vdpaupp.c +++ b/video/filter/vf_vdpaupp.c @@ -74,8 +74,7 @@ static void vf_vdpaupp_process(struct mp_filter *f) struct mp_image *mpi = mp_vdpau_mixed_frame_create(mp_refqueue_get_field(p->queue, 0)); - if (!mpi) - return; // OOM + MP_HANDLE_OOM(mpi); struct mp_vdpau_mixer_frame *frame = mp_vdpau_mixed_frame_get(mpi); if (!mp_refqueue_should_deint(p->queue)) { |