[gtk/wip/otte/lottie: 92/173] 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: 92/173] mediafile: Load extension at startup with GTK_MEDIA
- Date: Sat, 26 Dec 2020 15:23:43 +0000 (UTC)
commit 5dddf671c43729074c70ce7e4bd2b4a28924cb70
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]