aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/eg-sampler.lv2/sampler.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/eg-sampler.lv2/sampler.c b/plugins/eg-sampler.lv2/sampler.c
index fdd5661..b7851cc 100644
--- a/plugins/eg-sampler.lv2/sampler.c
+++ b/plugins/eg-sampler.lv2/sampler.c
@@ -289,12 +289,12 @@ instantiate(const LV2_Descriptor* descriptor,
zix_ring_mlock(plugin->from_worker);
/* Load the default sample file */
- const size_t path_len = strlen(path);
- const size_t file_len = strlen(default_sample_file);
- const size_t len = strlen("file://") + path_len + file_len;
- char* sample_uri = (char*)malloc(len + 1);
- snprintf(sample_uri, len + 1, "file://%s%s", path, default_sample_file);
- plugin->sample = load_sample(plugin, sample_uri);
+ const size_t path_len = strlen(path);
+ const size_t file_len = strlen(default_sample_file);
+ const size_t len = path_len + file_len;
+ char* sample_path = (char*)malloc(len + 1);
+ snprintf(sample_path, len + 1, "%s%s", path, default_sample_file);
+ plugin->sample = load_sample(plugin, sample_path);
return (LV2_Handle)plugin;
25 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169