Skip to content

Commit

Permalink
#835: improve av-sync debug logging for delay changes, log current se…
Browse files Browse the repository at this point in the history
…ttings and wid

git-svn-id: https://xpra.org/svn/Xpra/trunk@11365 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 7, 2015
1 parent a75c4ea commit 60e4e21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/server/window/window_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ def set_av_sync_delay(self, new_delay):
self.schedule_av_sync_update()

def schedule_av_sync_update(self, delay=0):
avsynclog("schedule_av_sync_update(%i) wid=%i, delay=%i, target=%i, timer=%s", delay, self.wid, self.av_sync_delay, self.av_sync_delay_target, self.av_sync_timer)
if not self.av_sync:
self.av_sync_delay = 0
return
Expand All @@ -607,7 +608,7 @@ def update_av_sync_delay(self):
return
#limit the rate of change:
rdelta = min(AV_SYNC_RATE_CHANGE, max(-AV_SYNC_RATE_CHANGE, delta))
avsynclog("update_av_sync_delay() current=%s, target=%s, adding %s (capped to +-%s from %s)", self.av_sync_delay, self.av_sync_delay_target, rdelta, AV_SYNC_RATE_CHANGE, delta)
avsynclog("update_av_sync_delay() wid=%i, current=%s, target=%s, adding %s (capped to +-%s from %s)", self.wid, self.av_sync_delay, self.av_sync_delay_target, rdelta, AV_SYNC_RATE_CHANGE, delta)
self.av_sync_delay += rdelta
if self.av_sync_delay!=self.av_sync_delay_target:
self.schedule_av_sync_update(AV_SYNC_TIME_CHANGE)
Expand Down

0 comments on commit 60e4e21

Please sign in to comment.