From 0cf2ebe4869324e9b4c36b264946e96cca27fc9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 6 Sep 2011 19:13:44 +0100 Subject: [PATCH] caps.override: fix compiler warning 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstcaps.override b/gst/gstcaps.override index ef300eb..77e3d84 100644 --- a/gst/gstcaps.override +++ b/gst/gstcaps.override @@ -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); -- 2.7.4