[pitivi: 4/14] stream: in get_pad_type, look at template caps if negotiated caps aren't set
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 4/14] stream: in get_pad_type, look at template caps if negotiated caps aren't set
- Date: Fri, 1 Oct 2010 12:16:30 +0000 (UTC)
commit 66926f5722f8bc9bffac41b848570c50d3b1d5c8
Author: Alessandro Decina <alessandro d gmail com>
Date: Mon Sep 27 17:35:58 2010 +0200
stream: in get_pad_type, look at template caps if negotiated caps aren't set
pitivi/stream.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/stream.py b/pitivi/stream.py
index 96ae7eb..683c1ff 100644
--- a/pitivi/stream.py
+++ b/pitivi/stream.py
@@ -306,7 +306,11 @@ def get_pad_type(pad):
if decoder:
return get_type_from_decoder(decoder)
- return pad.get_caps()[0].get_name().split('/', 1)[0]
+ caps = pad.props.caps
+ if caps is None:
+ caps = pad.get_caps()
+
+ return caps[0].get_name().split('/', 1)[0]
def get_pad_id(pad):
lst = []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]