+ g_free(vdev->capturefile);
+
+ /* If the file has logic channels, the initial value for
+ * capturefile is set by stream_session_data() - however only
+ * once. In order to not mess this mechanism up, we simulate
+ * this here if needed. For purely analog files, capturefile
+ * is not set.
+ */
+ if (vdev->num_logic_channels)
+ vdev->capturefile = g_strdup("logic-1");
+ else
+ vdev->capturefile = NULL;