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:
Dudemanguy 2024-01-26 22:56:50 -06:00
parent e9076896cd
commit 99d387bbc8
1 changed files with 1 additions and 1 deletions

View File

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