[Spice-devel] [PATCH spice-gtk v4 2/2] spice-widget: Avoid deadlock for VAAPI
Frediano Ziglio
fziglio at redhat.com
Tue Jan 15 10:22:39 UTC 2019
Calling gst_video_overlay_handle_events after
gst_video_overlay_set_window_handle causes often a deadlock in
gstreamer-vaapi.
Reverting the calls fix this issue.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
src/spice-widget.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/spice-widget.c b/src/spice-widget.c
index 69c00558..1d7c8c17 100644
--- a/src/spice-widget.c
+++ b/src/spice-widget.c
@@ -2588,8 +2588,8 @@ static void gst_sync_bus_call(GstBus *bus, GstMessage *msg, SpiceDisplay *displa
GstVideoOverlay *overlay = GST_VIDEO_OVERLAY(GST_MESSAGE_SRC(msg));
g_weak_ref_set(&d->overlay_weak_ref, overlay);
- gst_video_overlay_set_window_handle(overlay, (uintptr_t)GDK_WINDOW_XID(window));
gst_video_overlay_handle_events(overlay, false);
+ gst_video_overlay_set_window_handle(overlay, (uintptr_t)GDK_WINDOW_XID(window));
return;
}
}
--
2.20.1
More information about the Spice-devel
mailing list