[pitivi] Only commit clip thumbnails once they're done processing
- From: Jean-François Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Only commit clip thumbnails once they're done processing
- Date: Wed, 24 Apr 2013 18:01:31 +0000 (UTC)
commit d1a8b3f4509fcfb06a9fccb922111c9f705b5f8d
Author: Daniel Thul <daniel thul gmail com>
Date: Tue Apr 16 22:27:54 2013 +0200
Only commit clip thumbnails once they're done processing
pitivi/timeline/timeline.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index d1723c3..a4a772e 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1738,6 +1738,7 @@ class VideoPreviewer(Clutter.ScrollActor, Zoomable):
def _create_next_thumb(self):
if not self.queue:
# nothing left to do
+ self.thumb_cache.commit()
return
wish = self._get_wish()
if wish:
@@ -2012,6 +2013,10 @@ class ThumbnailCache(object):
#Replace if the key already existed
self.cur.execute("DELETE FROM Thumbs WHERE time=?", (key,))
self.cur.execute("INSERT INTO Thumbs VALUES (?,?)", (key, blob,))
+ #self.conn.commit()
+
+ def commit(self):
+ print("commit")
self.conn.commit()
if __name__ == "__main__":
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]