[gtk/wip/gstmediafile-input: 1/2] media: Initialize gstreamer when loading the module
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/gstmediafile-input: 1/2] media: Initialize gstreamer when loading the module
- Date: Sun, 18 Jul 2021 04:51:45 +0000 (UTC)
commit ab44159ca86915b6862d2b77a4643db3ac8c25d3
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jul 18 00:14:13 2021 -0400
media: Initialize gstreamer when loading the module
So far, we've relied on this happening as a side-effect
of creating a GstPlayer, but that is too late for
registering our own bin class.
modules/media/gtkgstmediafile.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/modules/media/gtkgstmediafile.c b/modules/media/gtkgstmediafile.c
index 6f09d1dbc8..9e9edbd68c 100644
--- a/modules/media/gtkgstmediafile.c
+++ b/modules/media/gtkgstmediafile.c
@@ -106,6 +106,8 @@ g_io_module_load (GIOModule *module)
GTK_TYPE_GST_MEDIA_FILE,
"gstreamer",
10);
+
+ gst_init (NULL, NULL);
}
G_GNUC_NORETURN
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]