[gnome-music/wip/mschraal/asyncqueue-fixes: 24/29] grltrackerwrapper: Add low priorty GrlOperationOptions
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/asyncqueue-fixes: 24/29] grltrackerwrapper: Add low priorty GrlOperationOptions
- Date: Sun, 19 Sep 2021 10:51:08 +0000 (UTC)
commit af0edc76a2c58bfc5c8b785866ee63ce482d9f9d
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 a721d95f7..e648af3a9 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]