]> git.pld-linux.org Git - packages/python-gstreamer.git/commitdiff
- updated to 1.6.2 auto/th/python-gstreamer-1.6.2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 20 Dec 2015 17:29:56 +0000 (18:29 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 20 Dec 2015 17:29:56 +0000 (18:29 +0100)
python-gstreamer-nosegv.patch
python-gstreamer.spec

index 1fe414bb41129a922d01409c5187a516dd82e670..5e55e9d5bf9f950f305e38f91b7d9bd6d8e26448 100644 (file)
@@ -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");
  
index 9b6239d58084ba077cef329bc2e38b2594a08da7..d32952dd735cd0d37dfaa766c82c8cca38991300 100644 (file)
@@ -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
This page took 0.190296 seconds and 4 git commands to generate.