Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3ad3b24 authored by Sally Qi's avatar Sally Qi
Browse files

[Lut] Dup the pfd instead of releasing it in parseSetDisplayLuts.

Bug: 391388648
Change-Id: Icb6b1257b5e15ca880721cad8cd00506f9a3617a
Test: rotate screen when playing HDR10 videos
parent 3bd61a3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -270,7 +270,7 @@ class ComposerClientReader {
        for (auto& [layerId, luts] : displayLuts.layerLuts) {
            if (luts.pfd.get() >= 0) {
                data.layerLuts.push_back(
                        {layerId, Luts{ndk::ScopedFileDescriptor(luts.pfd.release()), luts.offsets,
                        {layerId, Luts{ndk::ScopedFileDescriptor(dup(luts.pfd.get())), luts.offsets,
                                       luts.lutProperties}});
            }
        }