From b69bba9b089afc69df837ae69d55debf5a14ca1a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 2 Jul 2014 15:49:11 +0200 Subject: Fix crash on missing firewire interface. --- src/dv1394.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/dv1394.cc') 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); -- cgit v1.2.3