From: Paul Brossier Date: Mon, 3 Feb 2014 13:28:35 +0000 (-0300) Subject: timeside/decoder/file.py: fill in mime_type with 'audio/x-raw-int' for now X-Git-Tag: 0.5.3~1^2~2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=42975341819bb88f300b02af1ae39a297522b90f;p=timeside.git timeside/decoder/file.py: fill in mime_type with 'audio/x-raw-int' for now --- diff --git a/timeside/decoder/file.py b/timeside/decoder/file.py index e436e25..97160f7 100644 --- a/timeside/decoder/file.py +++ b/timeside/decoder/file.py @@ -233,6 +233,7 @@ class FileDecoder(Decoder): self.input_width = caps[0]["width"] else: self.input_width = caps[0]["depth"] + self.mimetype = caps.to_string().split(',')[0] self.discovered = True self.discovered_cond.notify() @@ -305,6 +306,10 @@ class FileDecoder(Decoder): self.mimetype = 'audio/mpeg' return self.mimetype + @interfacedoc + def mime_type(self): + return self.mimetype + @interfacedoc def encoding(self): # TODO check