caps.override: fix compiler warning
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 6 Sep 2011 18:13:44 +0000 (19:13 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 6 Sep 2011 18:13:44 +0000 (19:13 +0100)
Re-use the already-extracted caps and structure pointers, instead
of getting them again, thus fixing:
gstcaps.override: In function 'pygst_caps_sq_item':
gstcaps.override:361:16: error: variable 'structure' set but not used

gst/gstcaps.override

index ef300eb..77e3d84 100644 (file)
@@ -370,7 +370,7 @@ pygst_caps_sq_item(PyObject *self, Py_ssize_t i)
                                    
        /* pyg_boxed_new handles NULL checking */
        ret = pyg_boxed_new(GST_TYPE_STRUCTURE, 
-                           gst_caps_get_structure(pyg_boxed_get(self, GstCaps), i), 
+                           structure,
                            FALSE, FALSE);
        if (ret)
          pygst_caps_map_add (ret, self);