Skip to content
Snippets Groups Projects
Commit a2fe0983 authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

changed python runOne to decode until a sample is found

parent 96af4629
No related branches found
No related tags found
No related merge requests found
...@@ -909,15 +909,17 @@ class Decoder(Codec): ...@@ -909,15 +909,17 @@ class Decoder(Codec):
def runOne(self): def runOne(self):
data,decl = self.decode() data,decl = self.decode()
# decode any signatures until next sample
while data == None:
data,decl = self.decode()
if decl: if decl:
if data: if data != None:
if str(decl) in self.handlers: if str(decl) in self.handlers:
handler = self.handlers[str(decl)] handler = self.handlers[str(decl)]
handler(data) handler(data)
else: else:
print ("No handler for %s" % decl.name ) print ("No handler for %s" % decl.name )
def decode(self): def decode(self):
while True: while True:
index = self.decode_type_number() index = self.decode_type_number()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment