[gstreamer-bugs] [Bug 592459] New: info.print_info() uses info.tags.pop() to get values, but pop is destructive, so calling print_info twice can return different results

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Aug 20 06:30:20 PDT 2009


http://bugzilla.gnome.org/show_bug.cgi?id=592459

           Summary: info.print_info() uses info.tags.pop() to get values,
                    but pop is destructive, so calling print_info twice
                    can return different results
    Classification: Desktop
           Product: GStreamer
           Version: 0.10.x
        OS/Version: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: gst-python
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: teh at camvine.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


--- Comment #0 from teh at camvine.com 2009-08-20 13:30:17 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")

-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list