Skip to content

Commit

Permalink
use the reference passed in, no need for self since we checked alread…
Browse files Browse the repository at this point in the history
…y (and the one referenced by self could change from underneath us)

git-svn-id: https://xpra.org/svn/Xpra/trunk@8971 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 8, 2015
1 parent 0996d51 commit 6a58fc7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/xpra/server/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,10 +803,10 @@ def new_stream(self, sound_source, codec):
sound_source.codec = codec
if self.server_driven:
#tell the client this is the start:
self.send("sound-data", self.sound_source.codec, "",
self.send("sound-data", sound_source.codec, "",
{"start-of-stream" : True,
"codec" : self.sound_source.codec,
"sequence" : self.sound_source.sequence})
"codec" : sound_source.codec,
"sequence" : sound_source.sequence})

def new_sound_buffer(self, sound_source, data, metadata):
soundlog("new_sound_buffer(%s, %s, %s) suspended=%s",
Expand All @@ -815,9 +815,9 @@ def new_sound_buffer(self, sound_source, data, metadata):
return
if sound_source.sequence<self.sound_source_sequence:
return
if self.sound_source.sequence>=0:
metadata["sequence"] = self.sound_source.sequence
self.send("sound-data", self.sound_source.codec, Compressed(self.sound_source.codec, data), metadata)
if sound_source.sequence>=0:
metadata["sequence"] = sound_source.sequence
self.send("sound-data", sound_source.codec, Compressed(sound_source.codec, data), metadata)

def stop_receiving_sound(self):
ss = self.sound_sink
Expand Down

0 comments on commit 6a58fc7

Please sign in to comment.