[packages/python-gstreamer] - updated to 1.6.2

qboosh qboosh at pld-linux.org
Sun Dec 20 18:28:31 CET 2015


commit 01d95f66f507ff81193bf8f7dfafe67956ad2cf0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 20 18:29:56 2015 +0100

    - updated to 1.6.2

 python-gstreamer-nosegv.patch | 25 +++++++++++--------------
 python-gstreamer.spec         |  6 +++---
 2 files changed, 14 insertions(+), 17 deletions(-)
---
diff --git a/python-gstreamer.spec b/python-gstreamer.spec
index 9b6239d..d32952d 100644
--- a/python-gstreamer.spec
+++ b/python-gstreamer.spec
@@ -8,12 +8,12 @@
 Summary:	GStreamer Python 2 bindings
 Summary(pl.UTF-8):	Wiązania języka Python 2 do GStreamera
 Name:		python-gstreamer
-Version:	1.6.1
-Release:	2
+Version:	1.6.2
+Release:	1
 License:	LGPL v2+
 Group:		Libraries/Python
 Source0:	http://gstreamer.freedesktop.org/src/gst-python/%{pname}-%{version}.tar.xz
-# Source0-md5:	edcaf18228e3289edb8b79c684a49731
+# Source0-md5:	14b6cfe1a0db5cc01c6a58f7b4af6184
 Patch0:		%{name}-nosegv.patch
 URL:		http://gstreamer.freedesktop.org/modules/gst-python.html
 BuildRequires:	autoconf >= 2.68
diff --git a/python-gstreamer-nosegv.patch b/python-gstreamer-nosegv.patch
index 1fe414b..5e55e9d 100644
--- a/python-gstreamer-nosegv.patch
+++ b/python-gstreamer-nosegv.patch
@@ -1,33 +1,30 @@
---- gst-python-1.6.0/plugin/gstpythonplugin.c.orig	2014-10-20 11:18:17.000000000 +0200
-+++ gst-python-1.6.0/plugin/gstpythonplugin.c	2015-10-08 20:48:36.028154982 +0200
-@@ -262,18 +262,26 @@
+--- gst-python-1.6.2/plugin/gstpythonplugin.c.orig	2015-12-20 11:26:48.196121647 +0100
++++ gst-python-1.6.2/plugin/gstpythonplugin.c	2015-12-20 17:45:25.668501626 +0100
+@@ -267,7 +267,7 @@
    }
  
-   gst = PyImport_ImportModule ("gi.repository.Gst");
-+  if (gst == NULL) {
-+    GST_ERROR ("Gst import failed");
-+    return FALSE;
-+  }
    if (we_initialized) {
 -    PyObject *tmp;
 +    PyObject *tmp, *itmp;
  
      dict = PyModule_GetDict (gst);
      if (!dict) {
-       GST_ERROR ("no dict?!");
-+      return FALSE;
+@@ -275,9 +275,16 @@
+       return FALSE;
      }
  
--
-+    itmp = PyMapping_GetItemString (dict, "_introspection_module");
++    itmp = PyMapping_GetItemString (dict,
++            "_introspection_module"), PyUnicode_FromString ("__dict__");
 +    if (!itmp) {
-+      GST_ERROR ("no _introspection_module?");
++      g_critical ("gi.repository.Gst has no _introspection_module");
 +      return FALSE;
 +    }
++
      tmp =
 -        PyObject_GetAttr (PyMapping_GetItemString (dict,
 -            "_introspection_module"), PyUnicode_FromString ("__dict__"));
-+        PyObject_GetAttr (itmp, PyUnicode_FromString ("__dict__"));
++        PyObject_GetAttr (itmp,
++            PyUnicode_FromString ("__dict__"));
  
      _PyGstElement_Type = PyMapping_GetItemString (tmp, "Element");
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-gstreamer.git/commitdiff/01d95f66f507ff81193bf8f7dfafe67956ad2cf0



More information about the pld-cvs-commit mailing list