mirror of
https://github.com/mpv-player/mpv
synced 2025-02-23 16:36:56 +00:00
vo: ensure a dropped frame is always freed
7b8a30fc81
made it possible for a VO to
have direct ownership of frame objects since the it may be beneficial
for the frame to follow the lifecycle of that particular VO instead
(i.e. the wayland compositor for dmabuf-wayland). But when frames are
dropped, this always has to be unconditionally freed since the VO isn't
aware of it. Fixes #13364.
This commit is contained in:
parent
e9076896cd
commit
99d387bbc8
@ -1003,7 +1003,7 @@ static bool render_frame(struct vo *vo)
|
||||
wakeup_core(vo);
|
||||
|
||||
done:
|
||||
if (!vo->driver->frame_owner)
|
||||
if (!vo->driver->frame_owner || in->dropped_frame)
|
||||
talloc_free(frame);
|
||||
mp_mutex_unlock(&in->lock);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user