Skip to content

Commit c21756e

Browse files
vcheahmav-intel
authored andcommitted
Fix sample_multi_transcode intermittent segfault
HSD ID: 15012772965 Tested command: ./sample_multi_transcode -par config.par
1 parent 5046210 commit c21756e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ portable media pipelines on CPUs, GPUs, and other accelerators.
1010

1111
## [Unreleased]
1212

13+
### Fixed
14+
- Sample_multi_transcode intermittent segfault on wayland
15+
1316
### Removed
1417
- USE_ONEAPI_INSTALL_LAYOUT build shortcut
1518
- '-sw' option from examples

tools/legacy/sample_misc/wayland/src/class_wayland.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,10 @@ void Wayland::FreeSurface() {
152152
while (!m_buffers_list.empty()) {
153153
wl_surface_attach(m_surface, NULL, 0, 0);
154154
wl_surface_commit(m_surface);
155-
if (wl_display_dispatch_queue(m_display, m_event_queue) < 1)
155+
if (wl_display_dispatch_queue(m_display, m_event_queue) < 1) {
156+
DestroyBufferList();
156157
break;
158+
}
157159
}
158160

159161
wl_surface_destroy(m_surface);

0 commit comments

Comments
 (0)