From a51e82a29edb1161579371415034a906cd7e5550 Mon Sep 17 00:00:00 2001 From: Len Ovens Date: Thu, 11 May 2017 10:51:40 -0700 Subject: [PATCH] OSC: Initialize all surface struct values on creation --- libs/surfaces/osc/osc.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 47b36da9bb..2ca8c73c3a 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -1425,6 +1425,8 @@ OSC::get_surface (lo_address addr) // No surface create one with default values OSCSurface s; s.remote_url = r_url; + s.no_clear = false; + s.jogmode = JOG; s.bank = 1; s.bank_size = default_banksize; // need to find out how many strips there are s.strip_types = default_strip; // 159 is tracks, busses, and VCAs (no master/monitor) @@ -1434,6 +1436,7 @@ OSC::get_surface (lo_address addr) s.expand = 0; s.expand_enable = false; s.cue = false; + s.aux = 0; s.strips = get_sorted_stripables(s.strip_types, s.cue); s.nstrips = s.strips.size();