Skip to content

Commit

Permalink
fix: replace g_mutex_new with g_mutex_init
Browse files Browse the repository at this point in the history
`g_mutex_new` is deprecated.

Ref #2
  • Loading branch information
Linkid committed Mar 11, 2022
1 parent cf49c0c commit d0f885c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mixstream/MixStream.c
Expand Up @@ -130,7 +130,7 @@ MixStream* mix_stream_new(int samprate, int channels, mix_stream_read_cb read_cb
default: g_assert_not_reached(); break;
}

stream->st_mutex = *g_mutex_new();
g_mutex_init(&stream->st_mutex);

if (stream->samprate != stream->out_freq) {
_mix_stream_soundtouchify(stream);
Expand Down

0 comments on commit d0f885c

Please sign in to comment.