Changeset 485
- Timestamp:
- 24-05-11 19:00:04 (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
morituri/common/encode.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r484 r485 1 2011-05-24 Thomas Vander Stichele <thomas at apestaart dot org> 2 3 * morituri/common/encode.py: 4 Query for duration and use it in level callback to set progress. 5 Works around F-15 bug where encode progress is not being updated. 6 1 7 2011-05-24 Thomas Vander Stichele <thomas at apestaart dot org> 2 8 -
trunk/morituri/common/encode.py
r484 r485 195 195 return 196 196 197 197 198 # wavparse 0.10.14 returns in bytes 198 199 if qformat == self.gst.FORMAT_BYTES: … … 201 202 self.debug('total length: %r', length) 202 203 self._length = length 204 205 duration = None 206 try: 207 duration, qformat = identity.query_duration(self.gst.FORMAT_TIME) 208 except self.gst.QueryError, e: 209 self.debug('Could not query duration') 210 self._duration = duration 203 211 204 212 # set up level callbacks … … 246 254 self.log('higher peakdB found, now %r', self._peakdB) 247 255 self._peakdB = p 256 257 # FIXME: works around a bug on F-15 where buffer probes don't seem 258 # to get triggered to update progress 259 if self._duration is not None: 260 self.schedule(0, self.setProgress, 261 float(s['stream-time'] + s['duration']) / self._duration) 248 262 249 263 def stopped(self):
Note: See TracChangeset
for help on using the changeset viewer.
