[rygel] rygel: Force initialization for X threads
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] rygel: Force initialization for X threads
- Date: Thu, 12 May 2022 17:55:13 +0000 (UTC)
commit d6c0fca58a3b6e7ee3487d1748b8b7dbbd9e6b18
Author: Jens Georg <mail jensge org>
Date: Thu May 12 19:54:24 2022 +0200
rygel: Force initialization for X threads
Unfortunately we have to do that if Rygel is running in an X session and
uses VAAPI, otherwise there will be a random crashfest
src/rygel/application.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/rygel/application.vala b/src/rygel/application.vala
index 1f30d2a86..75c16f633 100644
--- a/src/rygel/application.vala
+++ b/src/rygel/application.vala
@@ -302,6 +302,8 @@ public class Rygel.Application : GLib.Application {
public static int main(string[] args) {
Environment.set_application_name (_(BuildConfig.PACKAGE_NAME));
+ X.init_threads ();
+
Intl.setlocale (LocaleCategory.ALL, "");
Intl.bindtextdomain (BuildConfig.GETTEXT_PACKAGE,
BuildConfig.LOCALEDIR);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]