diff options
Diffstat (limited to 'decoders/spdif/pd.py')
-rw-r--r-- | decoders/spdif/pd.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/decoders/spdif/pd.py b/decoders/spdif/pd.py index 65d1903..1b7f6e9 100644 --- a/decoders/spdif/pd.py +++ b/decoders/spdif/pd.py @@ -266,10 +266,7 @@ class Decoder(srd.Decoder): def decode(self): # Set samplerate to 0 if it is not given. Decoding is still possible. - try: - if self.samplerate != 0: - pass - except: + if not self.samplerate: self.samplerate = 0 # Throw away first two edges as it might be mangled data. |