aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGloweye <jaccovandorp@gmail.com>2017-02-06 11:58:41 +0100
committerGitHub <noreply@github.com>2017-02-06 11:58:41 +0100
commit292a472e00abe6906a494811d0bb6aa40deb6773 (patch)
tree5d5c537200370e1fd4b9279f0d275833110d3f1f
parent82b60e50173ef23d9cce411963ed9953634683c2 (diff)
downloadpymba-292a472e00abe6906a494811d0bb6aa40deb6773.tar.gz
pymba-292a472e00abe6906a494811d0bb6aa40deb6773.zip
Fix for retrieving list of interfaces.
Sending in None as reference explicitly tells the DLL we're only interested in the number of interfaces available. I was having crashes with this request otherwise. Note: I tested and verified this with Vimba 2.0. Perhaps the issue doesn't arise with older versions, but the documentation seems to indicate that this is the intended method all along.
-rw-r--r--pymba/vimba.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pymba/vimba.py b/pymba/vimba.py
index 1096917..2f78ea5 100644
--- a/pymba/vimba.py
+++ b/pymba/vimba.py
@@ -68,7 +68,7 @@ class Vimba(object):
# call once just to get the number of interfaces
# Vimba DLL will return an error code
- errorCode = VimbaDLL.interfacesList(byref(dummyInterfaceInfo),
+ errorCode = VimbaDLL.interfacesList(None,
0,
byref(numFound),
sizeof(dummyInterfaceInfo))