From d7692dba743170ae661998d262347563ceaaf6dd Mon Sep 17 00:00:00 2001 From: Lim Siew Hoon Date: Fri, 2 Jun 2023 10:56:38 +0800 Subject: onevpl: fix various issues 1. Fixed memory leaking on sample rendering in wayland 2. Fixed sample_multi_transcode segfault rendering in wayland. 3. Fixed sample X11 rendering in corruption issue. 4. Fixed Adjust MJPEG 1920x1080 alignment issue. 5. Fixed sample_multi_transcode intermittent segfault issue. Signed-off-by: Lim Siew Hoon Signed-off-by: Anuj Mittal --- ...ple_multi_transcode-intermittent-segfault.patch | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 recipes-multimedia/onevpl/files/0005-Fix-sample_multi_transcode-intermittent-segfault.patch (limited to 'recipes-multimedia/onevpl/files/0005-Fix-sample_multi_transcode-intermittent-segfault.patch') diff --git a/recipes-multimedia/onevpl/files/0005-Fix-sample_multi_transcode-intermittent-segfault.patch b/recipes-multimedia/onevpl/files/0005-Fix-sample_multi_transcode-intermittent-segfault.patch new file mode 100644 index 00000000..52f8fb7e --- /dev/null +++ b/recipes-multimedia/onevpl/files/0005-Fix-sample_multi_transcode-intermittent-segfault.patch @@ -0,0 +1,34 @@ +From 1f03f8e2569e69e558d077643ea628d3ba3cacb7 Mon Sep 17 00:00:00 2001 +From: Vincent Cheah Beng Keat +Date: Thu, 25 May 2023 01:16:18 +0800 +Subject: [PATCH 5/5] Fix sample_multi_transcode intermittent segfault + +HSD ID: 15012772965 +Tested command: ./sample_multi_transcode -par config.par + +Upstream-Status: Backport +Expect it to be removed once move to v2023.3.0 and above. +https://github.com/oneapi-src/oneVPL/commit/c21756e6a235fbde08844cca5e429ca142eef479 +--- + tools/legacy/sample_misc/wayland/src/class_wayland.cpp | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/tools/legacy/sample_misc/wayland/src/class_wayland.cpp b/tools/legacy/sample_misc/wayland/src/class_wayland.cpp +index af4d3f3..e86ceee 100644 +--- a/tools/legacy/sample_misc/wayland/src/class_wayland.cpp ++++ b/tools/legacy/sample_misc/wayland/src/class_wayland.cpp +@@ -152,8 +152,10 @@ void Wayland::FreeSurface() { + while (!m_buffers_list.empty()) { + wl_surface_attach(m_surface, NULL, 0, 0); + wl_surface_commit(m_surface); +- if (wl_display_dispatch_queue(m_display, m_event_queue) < 1) ++ if (wl_display_dispatch_queue(m_display, m_event_queue) < 1) { ++ DestroyBufferList(); + break; ++ } + } + + wl_surface_destroy(m_surface); +-- +2.40.1 + -- cgit v1.2.3-54-g00ecf