aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Myers <sam.myers@inventia.life>2017-03-04 11:27:29 +1100
committerSam Myers <sam.myers@inventia.life>2017-03-04 11:27:29 +1100
commit93b7fd6b4ff5a2acd1e4b53a7ffca141a63337df (patch)
tree7c6ba26efeb9491bfcb995a5a5aaf38b118b4ef2
parente97a71a576b36a6a7cda4d488056ddb316738df5 (diff)
parent5178d9b92f6ff3b07e74aee50d5352efeaff5f0c (diff)
downloadpymba-93b7fd6b4ff5a2acd1e4b53a7ffca141a63337df.tar.gz
pymba-93b7fd6b4ff5a2acd1e4b53a7ffca141a63337df.zip
Merge branch 'master' of https://github.com/morefigs/pymba
-rw-r--r--pymba/vimba.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pymba/vimba.py b/pymba/vimba.py
index d2bf9dd..0275e26 100644
--- a/pymba/vimba.py
+++ b/pymba/vimba.py
@@ -64,7 +64,6 @@ class Vimba(object):
"""
if self._interfaceInfos is None:
# args
- dummyInterfaceInfo = structs.VimbaInterfaceInfo()
numFound = c_uint32(-1)
# call once just to get the number of interfaces
@@ -72,7 +71,7 @@ class Vimba(object):
errorCode = VimbaDLL.interfacesList(None,
0,
byref(numFound),
- sizeof(dummyInterfaceInfo))
+ sizeof(structs.VimbaInterfaceInfo))
if errorCode != 0:
raise VimbaException(errorCode)
@@ -86,7 +85,7 @@ class Vimba(object):
errorCode = VimbaDLL.interfacesList(interfaceInfoArray,
numInterfaces,
byref(numFound),
- sizeof(dummyInterfaceInfo))
+ sizeof(structs.VimbaInterfaceInfo))
if errorCode != 0:
raise VimbaException(errorCode)
self._interfaceInfos = list(