summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNepNep21 <nepnep91@protonmail.com>2024-01-14 18:25:58 -0300
committerJoseph Donofry <rubberduckie3554@gmail.com>2024-01-14 17:21:44 -0500
commit4058a99c6ae07f328702f6b1189d3d00018bdd5d (patch)
treedd3775df5a634114ed395b07c0a495dfdb3fb9fb /src
parentTranslated using Weblate (French) (diff)
downloadnheko-4058a99c6ae07f328702f6b1189d3d00018bdd5d.tar.xz
Fix gstreamer deinit
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f3a195b9..9d1872b9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -28,6 +28,7 @@
 #include <kdsingleapplication.h>
 
 #include "Cache.h"
+#include "CallManager.h"
 #include "ChatPage.h"
 #include "Logging.h"
 #include "MainWindow.h"
@@ -430,6 +431,9 @@ main(int argc, char *argv[])
             http::client()->close(true);
             nhlog::net()->debug("bye");
         }
+        // This is required in order to destroy CallManager's QMediaPlayer, in turn allowing it
+        // to destroy its GstPipeline so that gst_deinit() can return.
+        ChatPage::instance()->callManager()->deleteLater();
     });
 
     // It seems like handling the message in a blocking manner is a no-go. I have no idea how to