Skip to main content
Sign in
Snippets Groups Projects
Commit a824aa37 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 04550b7a
No related branches found
No related tags found
No related merge requests found
......@@ -951,15 +951,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