From: Bert Vermeulen Date: Wed, 24 Apr 2013 21:06:50 +0000 (+0200) Subject: Open virtual device before loading file X-Git-Tag: dsupstream~69 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bd7bfe8c5140d459092f93f9ffc3130a487f5d58;p=libsigrok.git Open virtual device before loading file --- diff --git a/session_file.c b/session_file.c index 46b12e32..020838bc 100644 --- a/session_file.c +++ b/session_file.c @@ -145,6 +145,7 @@ SR_API int sr_session_load(const char *filename) if (devcnt == 0) /* first device, init the driver */ sdi->driver->init(NULL); + sr_dev_open(sdi); sr_session_dev_add(sdi); sdi->driver->config_set(SR_CONF_SESSIONFILE, g_variant_new_string(filename), sdi);