[pitivi/ges] medialibrary: Warn of nonsensical timeline durations on insert



commit d3155755fb9a3889116da50c3a450f3cdb163f3e
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Tue May 8 21:06:54 2012 -0400

    medialibrary: Warn of nonsensical timeline durations on insert

 pitivi/medialibrary.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index 64e20f8..a7e94bb 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -584,6 +584,8 @@ class MediaLibraryWidget(gtk.VBox, Loggable):
         if not self._sources_to_insert:
             # OK, we added all the sources!
             timeline.enable_update(True)
+            if timeline.props.duration <= 0:
+                self.error("The timeline duration is still 0, which makes no sense")
             self.app.current.seeker.seek(timeline.props.duration)
             self.app.action_log.commit()
             return



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]