[pitivi] previewer.py: don't draw anything if we get an empty buffer
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] previewer.py: don't draw anything if we get an empty buffer
- Date: Wed, 30 Sep 2009 09:25:02 +0000 (UTC)
commit 22bbe2177fdf46c98674771e01742c7ff9699c3b
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Thu Sep 24 21:05:49 2009 -0700
previewer.py: don't draw anything if we get an empty buffer
pitivi/ui/previewer.py | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/ui/previewer.py b/pitivi/ui/previewer.py
index ef5e39d..a67b49f 100644
--- a/pitivi/ui/previewer.py
+++ b/pitivi/ui/previewer.py
@@ -477,9 +477,6 @@ class RandomAccessAudioPreviewer(RandomAccessPreviewer):
samples = self.audioSink.samples
if not samples:
- cr.move_to(0, hscale)
- cr.line_to(self.twidth, hscale)
- cr.stroke()
return
# find the samples-per-pixel ratio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]