[rygel] MediaExport: Tracker3 blocks start as well
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] MediaExport: Tracker3 blocks start as well
- Date: Sun, 23 May 2021 16:50:54 +0000 (UTC)
commit d0410cccf6af55e16d3ba9400ad5e9f703313739
Author: Jens Georg <mail jensge org>
Date: Wed Feb 24 00:25:55 2021 +0100
MediaExport: Tracker3 blocks start as well
Not only the old Tracker plugin
src/plugins/media-export/rygel-media-export-plugin.vala | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-plugin.vala
b/src/plugins/media-export/rygel-media-export-plugin.vala
index b1001dfd..c18c0bac 100644
--- a/src/plugins/media-export/rygel-media-export-plugin.vala
+++ b/src/plugins/media-export/rygel-media-export-plugin.vala
@@ -22,6 +22,7 @@ using Rygel;
using GUPnP;
private const string TRACKER_PLUGIN = "Tracker";
+private const string TRACKER3_PLUGIN = "Tracker3";
/**
* Simple plugin which exposes the media contents of a directory via UPnP.
@@ -59,7 +60,7 @@ public void on_plugin_available (Plugin plugin, Plugin our_plugin) {
// Do not allow this plugin and the tracker plugin to both be
// active at the same time,
// because they serve the same purpose.
- if (plugin.name == TRACKER_PLUGIN) {
+ if (plugin.name == TRACKER_PLUGIN || plugin.name == TRACKER3_PLUGIN ) {
if (our_plugin.active && !plugin.active) {
// The Tracker plugin might be activated later,
// so shut this plugin down if that happens.
@@ -78,7 +79,7 @@ public void on_plugin_available (Plugin plugin, Plugin our_plugin) {
// Log that we are starting this plugin
// because the Tracker plugin is not active instead.
message ("Plugin '%s' inactivate, activating '%s' plugin",
- TRACKER_PLUGIN,
+ plugin.name,
MediaExport.Plugin.NAME);
}
our_plugin.active = !plugin.active;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]