Skip to content

Commit

Permalink
don't emit the same buffer twice: pre-roll buffers are emitted as sam…
Browse files Browse the repository at this point in the history
…ples anyway

git-svn-id: https://xpra.org/svn/Xpra/trunk@15783 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 1, 2017
1 parent aedb0be commit 11ea13c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/xpra/sound/src.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,8 @@ def get_info(self):


def on_new_preroll(self, appsink):
sample = appsink.emit('pull-preroll')
gstlog('new preroll: %s', sample)
return self.emit_buffer(sample)
gstlog('new preroll')
return 0

def on_new_sample(self, bus):
#Gst 1.0
Expand Down

0 comments on commit 11ea13c

Please sign in to comment.