diff --git a/oxgst/info.py b/oxgst/info.py index 9012513..cfe0b52 100644 --- a/oxgst/info.py +++ b/oxgst/info.py @@ -44,7 +44,8 @@ class Info(dict): #self['sample width (bits)'] = d.audiowidth #self['sample depth (bits)'] = d.audiodepth self['samplerate'] = d.audiorate - self['duration'] = max(self.get('duration', 0), d.audiolength/gst.MSECOND) + if 'duration' not in self: + self['duration'] = d.audiolength/gst.MSECOND self['channels'] = d.audiochannels if 'video-codec' in d.tags: