[pitivi] AudioClipper: Forward buffers that have no timestamp.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] AudioClipper: Forward buffers that have no timestamp.
- Date: Sun, 9 Aug 2009 08:54:18 +0000 (UTC)
commit b7adf2acf72308ef83af9340dd277ffbfcf7d2de
Author: Edward Hervey <bilboed bilboed com>
Date: Sun Aug 9 10:43:16 2009 +0200
AudioClipper: Forward buffers that have no timestamp.
This avoids having excptions being raised when non-timestamped buffers
come through.
pitivi/elements/audioclipper.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/elements/audioclipper.py b/pitivi/elements/audioclipper.py
index db8a637..7ff72cd 100644
--- a/pitivi/elements/audioclipper.py
+++ b/pitivi/elements/audioclipper.py
@@ -142,6 +142,9 @@ class ClipperProbe(object):
def _bufferprobe(self, pad, inbuf):
start = inbuf.timestamp
+ if start == gst.CLOCK_TIME_NONE:
+ pad.warning("Got buffer without timestamp ! Forwarding")
+ return True
if inbuf.duration == gst.CLOCK_TIME_NONE:
stop = inbuf.timestamp + (inbuf.size * gst.SECOND) / self.bitrate
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]