Skip to content

Commit

Permalink
#1178: add queue event logging
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@12527 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 4, 2016
1 parent fcb00b7 commit 95dced2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xpra/sound/sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,13 @@ def cleanup(self):


def queue_pushing(self, *args):
gstlog("queue_pushing")
self.queue_state = "pushing"
self.emit_info()
return True

def queue_running(self, *args):
gstlog("queue_running")
self.queue_state = "running"
self.set_min_level()
self.set_max_level()
Expand All @@ -167,6 +169,7 @@ def queue_underrun(self, *args):
if self.queue_state=="starting" or 1000*(now-self.start_time)<GRACE_PERIOD:
gstlog("ignoring underrun during startup")
return 1
gstlog("queue_underrun")
self.queue_state = "underrun"
if now-self.last_underrun>2:
self.last_underrun = now
Expand Down

0 comments on commit 95dced2

Please sign in to comment.