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
Branches
Tags
No related merge requests found
......@@ -909,15 +909,17 @@ class Decoder(Codec):
def runOne(self):
data,decl = self.decode()
# decode any signatures until next sample
while data == None:
data,decl = self.decode()
if decl:
if data:
if data != None:
if str(decl) in self.handlers:
handler = self.handlers[str(decl)]
handler(data)
else:
print ("No handler for %s" % decl.name )
def decode(self):
while True:
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