From c5dbacb6a717deab455aedea1b6748919299c22f Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Sat, 18 Mar 2023 16:04:36 +0200 Subject: [PATCH] gtk4: Fix compilation on macOS Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/332 Part-of: --- video/gtk4/src/sink/imp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/gtk4/src/sink/imp.rs b/video/gtk4/src/sink/imp.rs index 5149a050..8d6ad5fb 100644 --- a/video/gtk4/src/sink/imp.rs +++ b/video/gtk4/src/sink/imp.rs @@ -853,7 +853,7 @@ impl PaintableSink { let wrapped_context = match wrapped_context { None => { gst::error!(CAT, imp: self, "Failed to create wrapped GL context"); - return; + return None; } Some(wrapped_context) => wrapped_context, };