[gnome-music/wip/mschraal/asyncqueue-fixes: 2/6] grltrackerwrapper: Add low priorty GrlOperationOptions




commit efc39daf887399f56303f055bc563352b292624f
Author: Marinus Schraal <mschraal gnome org>
Date:   Tue Sep 7 12:33:49 2021 +0200

    grltrackerwrapper: Add low priorty GrlOperationOptions

 gnomemusic/grilowrappers/grltrackerwrapper.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index 9529509e8..910ecdb36 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -145,11 +145,22 @@ class GrlTrackerWrapper(GObject.GObject):
         self._fast_options.set_type_filter(Grl.TypeFilter.AUDIO)
         self._fast_options.set_resolution_flags(
             Grl.ResolutionFlags.FAST_ONLY)
+
+        self._fast_options_lprio = Grl.OperationOptions()
+        self._fast_options_lprio.set_type_filter(Grl.TypeFilter.AUDIO)
+        self._fast_options_lprio.set_resolution_flags(
+            Grl.ResolutionFlags.FAST_ONLY)
+
         self._full_options: Grl.OperationOptions = Grl.OperationOptions()
         self._full_options.set_type_filter(Grl.TypeFilter.AUDIO)
         self._full_options.set_resolution_flags(
             Grl.ResolutionFlags.FULL)
 
+        self._full_options_lprio = Grl.OperationOptions()
+        self._full_options_lprio.set_type_filter(Grl.TypeFilter.AUDIO)
+        self._full_options_lprio.set_resolution_flags(
+            Grl.ResolutionFlags.FULL | Grl.ResolutionFlags.IDLE_RELAY)
+
         self._content_changed_id: int = 0
         self.props.source = source
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]