[gtk/wip/otte/lottie: 2415/2503] mediafile: Load extension at startup with GTK_MEDIA
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/lottie: 2415/2503] mediafile: Load extension at startup with GTK_MEDIA
- Date: Tue, 13 Jul 2021 04:28:04 +0000 (UTC)
commit 1b2a79f1d1491e6dd316abec79d37f3af7aa3527
Author: Benjamin Otte <otte redhat com>
Date: Sat Dec 26 14:55:41 2020 +0100
mediafile: Load extension at startup with GTK_MEDIA
When the GTK_MEDIA env var is set, check at startup that it works, not
only when the first MeidaFile is instantiated.
This has the fortunate side effect that it prints help output for
GTK_MEDIA=help at startup, too.
gtk/gtkmediafile.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gtk/gtkmediafile.c b/gtk/gtkmediafile.c
index 33b56a2cf5..a93a955d61 100644
--- a/gtk/gtkmediafile.c
+++ b/gtk/gtkmediafile.c
@@ -647,4 +647,8 @@ gtk_media_file_extension_init (void)
g_type_name (g_io_extension_get_type (ext)));
}
}
+
+ /* IF the env var is given, check at startup that things actually work */
+ if (g_getenv ("GTK_MEDIA"))
+ gtk_media_file_get_extension ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]