Fixed an infinite loop

Parsing this new file from soundgrinder seems to be error-prone, for now this fixes it.
This commit is contained in:
Jamie Hardt
2019-01-04 18:36:22 -08:00
parent 5315575e35
commit c20b17e82c
3 changed files with 26 additions and 18 deletions

View File

@@ -115,7 +115,10 @@ class WavInfoReader():
def _get_bext(self, f, encoding):
bext_data = self._find_chunk_data(b'bext',f,default_none=True)
return WavBextReader(bext_data, encoding)
if bext_data:
return WavBextReader(bext_data, encoding)
else:
return None
def _get_ixml(self,f):
ixml_data = self._find_chunk_data(b'iXML',f,default_none=True)