fix a compile warning

Original commit message from CVS:
fix a compile warning
parent 57f2b067
common @ ed429334
Subproject commit 50879a63c4fa8f2544d4d89a9dbfa0f5720c3266
Subproject commit ed429334bba35b10172ba97d9b3795b75a65b388
......@@ -448,7 +448,7 @@ _wrap_gst_props_entry_get_list(PyObject *self)
list = NULL;
ret = gst_props_entry_get_list(pyg_boxed_get(self, GstPropsEntry), &list);
if (ret == TRUE) {
tuple = PyTuple_New(g_list_length(list));
tuple = PyTuple_New(g_list_length((GList *) list));
for (i = 0; list != NULL; i++, list = g_list_next(list)) {
obj = pyg_boxed_new(GST_TYPE_PROPS_ENTRY, list->data, TRUE, TRUE);
PyTuple_SET_ITEM(tuple, i, obj);
......
......@@ -448,7 +448,7 @@ _wrap_gst_props_entry_get_list(PyObject *self)
list = NULL;
ret = gst_props_entry_get_list(pyg_boxed_get(self, GstPropsEntry), &list);
if (ret == TRUE) {
tuple = PyTuple_New(g_list_length(list));
tuple = PyTuple_New(g_list_length((GList *) list));
for (i = 0; list != NULL; i++, list = g_list_next(list)) {
obj = pyg_boxed_new(GST_TYPE_PROPS_ENTRY, list->data, TRUE, TRUE);
PyTuple_SET_ITEM(tuple, i, obj);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment