From f5f90c4be742075184491dfe0e31d36a353e0499 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 5 Dec 2005 12:01:32 +0000 Subject: [PATCH] examples/gstfile.py: Fix for fractional framerates. Original commit message from CVS: * examples/gstfile.py: (Discoverer._new_decoded_pad_cb): Fix for fractional framerates. --- ChangeLog | 5 +++++ examples/gstfile.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 26e7dd5..0988dc1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-12-05 Edward Hervey + + * examples/gstfile.py: (Discoverer._new_decoded_pad_cb): + Fix for fractional framerates. + 2005-12-05 Andy Wingo * testsuite/test_registry.py (RegistryTest.testPluginList): Look diff --git a/examples/gstfile.py b/examples/gstfile.py index a38a192..26cd321 100644 --- a/examples/gstfile.py +++ b/examples/gstfile.py @@ -160,9 +160,9 @@ class Discoverer(gst.Pipeline): print "\tAudio:", time_to_string(self.audiolength), "\tVideo:", time_to_string(self.videolength) if self.is_video: print "Video :" - print "\t%d x %d @ %.2f fps" % (self.videowidth, + print "\t%d x %d @ %d/%d fps" % (self.videowidth, self.videoheight, - self.videorate) + self.videorate.num, self.videorate.denom) if self.tags.has_key("video-codec"): print "\tCodec :", self.tags.pop("video-codec") if self.is_audio: -- 2.7.4