[tracker] tracker-extract: Take gstreamer initialization to plugin init phase
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: Take gstreamer initialization to plugin init phase
- Date: Mon, 30 Jan 2017 10:54:03 +0000 (UTC)
commit 50c3441405307029f081d0235168a3d5021920c0
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jan 30 11:22:27 2017 +0100
tracker-extract: Take gstreamer initialization to plugin init phase
The gst_init() call may end up rebuilding the registry, so should be
happening outside the sandbox.
src/tracker-extract/tracker-extract-gstreamer.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index c878c16..889ca60 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -1319,8 +1319,6 @@ tracker_extract_gstreamer (const gchar *uri,
g_return_val_if_fail (uri, NULL);
- gst_init (NULL, NULL);
-
extractor = g_slice_new0 (MetadataExtractor);
extractor->mime = type;
extractor->tagcache = gst_tag_list_new_empty ();
@@ -1466,3 +1464,10 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
g_free (uri);
return TRUE;
}
+
+G_MODULE_EXPORT gboolean
+tracker_extract_module_init (GError **error)
+{
+ gst_init (NULL, NULL);
+ return TRUE;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]