GNOME Bugzilla – Bug 592459
info.print_info() uses info.tags.pop() to get values, but pop is destructive, so calling print_info twice can return different results
Last modified: 2010-01-18 14:00:29 UTC
def print_info(self): """prints out the information on the given file""" if not self.finished: return if not self.mimetype: print "Unknown media type" return print "Mime Type :\t", self.mimetype if not self.is_video and not self.is_audio: return print "Length :\t", self._time_to_string(max(self.audiolength, self.videolength)) print "\tAudio:", self._time_to_string(self.audiolength), "\tVideo: ", self._time_to_string(self.videolength) if self.is_video and self.videorate: print "Video :" print "\t%d x %d @ %d/%d fps" % (self.videowidth, self.videoheight, self.videorate.num, self.videorate.denom ) if self.tags.has_key("video-codec"): print "\tCodec :", self.tags.pop("video-codec")
Module: gst-python Branch: master Commit: 64e9d7f25b15e085ba0de6081d0c325a0d5facba URL: http://cgit.freedesktop.org/gstreamer/gst-python/commit/?id=64e9d7f25b15e085ba0de6081d0c325a0d5facba Author: Thiago Santos <thiago.sousa.santos@collabora.co.uk> Date: Mon Jan 18 09:06:28 2010 -0300 python: Do not pop tags in discoverer.py Do not use pop on dicts because it destroys the tags info. Fixes #592459