[pitivi] clipmediaprops: Handle potentially broken framerates such as 1000 fps
- From: Jean-François Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] clipmediaprops: Handle potentially broken framerates such as 1000 fps
- Date: Wed, 22 Oct 2014 16:32:07 +0000 (UTC)
commit 8776f7352a5927cb3d230f67309b6d4430650a7d
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date: Sat Oct 11 12:02:19 2014 -0400
clipmediaprops: Handle potentially broken framerates such as 1000 fps
Fixes bug #721888
pitivi/dialogs/clipmediaprops.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/dialogs/clipmediaprops.py b/pitivi/dialogs/clipmediaprops.py
index de94491..4cfdab5 100644
--- a/pitivi/dialogs/clipmediaprops.py
+++ b/pitivi/dialogs/clipmediaprops.py
@@ -99,6 +99,11 @@ class ClipMediaPropsDialog(object):
get_value_from_model(frame_rates,
Gst.Fraction(framerate_num, framerate_denom)
))
+ if (framerate_num / framerate_denom) > 500:
+ # Sometimes you have "broken" 1000fps clips (WebM files
+ # from YouTube, for example), but it could also be a
+ # real framerate, so just uncheck instead of disabling:
+ self.framerate_checkbutton.set_active(False)
else:
foo = str(framerate_num) + "/" + str(framerate_denom)
# Translators: a label showing an invalid framerate value
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]