[pitivi] Don't call caps.make_writable() in imagefreeze.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] Don't call caps.make_writable() in imagefreeze.
- Date: Tue, 4 Aug 2009 07:49:29 +0000 (UTC)
commit e08a372837ad2bd233d208efd836cdeff1f8706c
Author: Alessandro Decina <alessandro d gmail com>
Date: Mon Aug 3 12:29:35 2009 +0200
Don't call caps.make_writable() in imagefreeze.
make_writable() should never be called from python since it breaks refcounting.
pitivi/elements/imagefreeze.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/elements/imagefreeze.py b/pitivi/elements/imagefreeze.py
index 3045e16..9d0120a 100644
--- a/pitivi/elements/imagefreeze.py
+++ b/pitivi/elements/imagefreeze.py
@@ -101,7 +101,7 @@ class ImageFreeze(gst.Element):
# methodology
# 1. We override any incoming framerate
- ccaps = caps.make_writable()
+ ccaps = gst.Caps(caps)
for struct in ccaps:
if struct.has_key("framerate"):
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]