[pitivi/ges: 119/287] Fix the resolution and framerate parsing in the Media Library
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 119/287] Fix the resolution and framerate parsing in the Media Library
- Date: Thu, 15 Mar 2012 16:35:50 +0000 (UTC)
commit 78594185e08bbded56113d5b5326a380666a3e89
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Tue Dec 27 15:08:54 2011 -0500
Fix the resolution and framerate parsing in the Media Library
pitivi/ui/common.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/ui/common.py b/pitivi/ui/common.py
index 2e5c024..09379ff 100644
--- a/pitivi/ui/common.py
+++ b/pitivi/ui/common.py
@@ -124,11 +124,11 @@ def beautify_stream(stream):
par = stream.get_par_num() / stream.get_par_denom()
if not stream.is_image():
templ = _(u"<b>Video:</b> %dÃ%d <i>pixels</i> at %.2f<i>fps</i>")
- templ = templ % (par * stream.get_height(), stream.get_height(),
- float(stream.get_framerate_num() / stream.get_framerate_num()))
+ templ = templ % (par * stream.get_width(), stream.get_height(),
+ float(stream.get_framerate_num()) / stream.get_framerate_denom())
else:
templ = _(u"<b>Image:</b> %dÃ%d <i>pixels</i>")
- templ = templ % (par * stream.get_height(), stream.get_height())
+ templ = templ % (par * stream.get_width(), stream.get_height())
return templ
elif type(stream) == gst.pbutils.DiscovererStreamInfo and\
"text" in stream.get_caps():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]