summaryrefslogtreecommitdiff
path: root/src/dv1394.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-07-02 15:49:11 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-07-02 15:49:11 +0200
commitb69bba9b089afc69df837ae69d55debf5a14ca1a (patch)
tree0cf6e79dde0ae4010f4474a145fe0d650f5aca0c /src/dv1394.cc
parentbf36a4c4b2376a2288d437591ea4263cdd946796 (diff)
Fix crash on missing firewire interface.
Diffstat (limited to 'src/dv1394.cc')
-rw-r--r--src/dv1394.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dv1394.cc b/src/dv1394.cc
index 0fde723..2086604 100644
--- a/src/dv1394.cc
+++ b/src/dv1394.cc
@@ -77,6 +77,7 @@ bool dv1394::connect()
handle = raw1394_new_handle_on_port(port);
//printf(" handle: %p\n", handle);
+ if(!handle) return false;
frame = iec61883_dv_fb_init(handle, write_frame, this);
//printf(" frame: %p\n", frame);