2d6f9f9727
A music editing program, in the grand tradition of amiga tracker programs.
26 lines
705 B
Plaintext
26 lines
705 B
Plaintext
$OpenBSD: patch-app_st-subs_c,v 1.1.1.1 2002/02/05 18:04:10 espie Exp $
|
|
--- app/st-subs.c.orig Mon Feb 4 04:18:39 2002
|
|
+++ app/st-subs.c Mon Feb 4 04:38:47 2002
|
|
@@ -359,7 +359,7 @@ void
|
|
st_clean_sample (STSample *s,
|
|
const char *name)
|
|
{
|
|
- GMutex *lock = s->sample.lock;
|
|
+ pthread_mutex_t *lock = s->sample.lock;
|
|
free(s->sample.data);
|
|
memset(s, 0, sizeof(STSample));
|
|
if(name)
|
|
@@ -367,8 +367,10 @@ st_clean_sample (STSample *s,
|
|
s->sample.loopend = 1;
|
|
if(lock)
|
|
s->sample.lock = lock;
|
|
- else
|
|
- s->sample.lock = g_mutex_new();
|
|
+ else {
|
|
+ s->sample.lock = malloc(sizeof(pthread_mutex_t));
|
|
+ pthread_mutex_init(s->sample.lock, NULL);
|
|
+ }
|
|
}
|
|
|
|
void
|