[packages/pitivi] - rel 2; add pitivi-0.15.0-ignore-unknown-stream-types.patch from fc
arekm
arekm at pld-linux.org
Sat Sep 21 19:13:14 CEST 2013
commit fef557046e9b45d7731d86f6919c546991b6d9fd
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Sep 21 19:13:11 2013 +0200
- rel 2; add pitivi-0.15.0-ignore-unknown-stream-types.patch from fc
pitivi-0.15.0-ignore-unknown-stream-types.patch | 29 +++++++++++++++++++++++++
pitivi.spec | 4 +++-
2 files changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/pitivi.spec b/pitivi.spec
index 7fd48ba..569e21e 100644
--- a/pitivi.spec
+++ b/pitivi.spec
@@ -2,11 +2,12 @@ Summary: Non-linear video editor
Summary(pl.UTF-8): Edytor wideo
Name: pitivi
Version: 0.15.2
-Release: 1
+Release: 2
License: LGPL v2+
Group: X11/Applications/Multimedia
Source0: http://ftp.gnome.org/pub/GNOME/sources/pitivi/0.15/%{name}-%{version}.tar.xz
# Source0-md5: e0e379fca759025140ac1316819b2173
+Patch0: pitivi-0.15.0-ignore-unknown-stream-types.patch
URL: http://www.pitivi.org/
BuildRequires: autoconf >= 2.52
BuildRequires: automake
@@ -42,6 +43,7 @@ PiTiVi jest programem do edycji wideo używającym GStreamera.
%prep
%setup -q
+%patch0 -p0
%build
%{__intltoolize}
diff --git a/pitivi-0.15.0-ignore-unknown-stream-types.patch b/pitivi-0.15.0-ignore-unknown-stream-types.patch
new file mode 100644
index 0000000..ff2c7ee
--- /dev/null
+++ b/pitivi-0.15.0-ignore-unknown-stream-types.patch
@@ -0,0 +1,29 @@
+diff -rup pitivi/effects.py pitivi/effects.py
+--- pitivi/effects.py 2011-09-24 11:16:29.000000000 -0400
++++ pitivi/effects.py 2011-11-18 11:09:21.475474154 -0500
+@@ -187,9 +187,13 @@ class EffectsHandler(object):
+
+ if padTmp.direction == gst.PAD_SRC:
+ stream = get_stream_for_pad(pad)
++ if stream is None:
++ continue
+ factory.addInputStream(stream)
+ elif padTmp.direction == gst.PAD_SINK:
+ stream = get_stream_for_pad(pad)
++ if stream is None:
++ continue
+ factory.addOutputStream(stream)
+ return True
+
+diff -rup pitivi/stream.py pitivi/stream.py
+--- pitivi/stream.py 2011-09-24 11:16:29.000000000 -0400
++++ pitivi/stream.py 2011-11-18 11:09:43.524670882 -0500
+@@ -370,6 +370,8 @@ def get_stream_for_pad(pad, store_pad=Fa
+ caps = pad.get_caps()
+ pad_id = get_pad_id(pad)
+ stream = get_stream_for_caps(caps, pad)
++ if stream is None:
++ return None
+ stream.pad_id = pad_id
+ if store_pad:
+ stream.pad = pad
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pitivi.git/commitdiff/fef557046e9b45d7731d86f6919c546991b6d9fd
More information about the pld-cvs-commit
mailing list