[gtk/wip/otte/lottie: 2/82] 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: 2/82] mediafile: Load extension at startup with GTK_MEDIA
- Date: Sun, 27 Dec 2020 00:16:01 +0000 (UTC)
commit 08ee6c7acf5ff339ab909911d6799c01f46981a5
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 dd0286c6b2..7af50ae306 100644
--- a/gtk/gtkmediafile.c
+++ b/gtk/gtkmediafile.c
@@ -639,4 +639,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]