]> sigrok.org Git - libsigrok.git/commitdiff
Open virtual device before loading file
authorBert Vermeulen <redacted>
Wed, 24 Apr 2013 21:06:50 +0000 (23:06 +0200)
committerBert Vermeulen <redacted>
Wed, 24 Apr 2013 21:06:50 +0000 (23:06 +0200)
session_file.c

index 46b12e32324a926db50c6cc841adfd5dace4a43e..020838bc8bd0ae698a4fa3f6ee142698eaec213d 100644 (file)
@@ -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);