]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - dpvsimpledecode.c
added a parameter to S_StopChannel to trigger a mutex lock, this fixes
[xonotic/darkplaces.git] / dpvsimpledecode.c
index 7519c3f6ecd6dad1cf0cb48a418fbf1bc470849d..6cbc44ea93bd7d464c34162ebaf998833e354fd4 100644 (file)
@@ -369,7 +369,7 @@ void *dpvsimpledecode_open(char *filename, char **errorstring)
                                                        if (s->videopixels != NULL)
                                                        {
                                                                size_t namelen;
-                                                               
+
                                                                namelen = strlen(filename) + 10;
                                                                wavename = (char *)Z_Malloc(namelen);
                                                                if (wavename)
@@ -424,7 +424,7 @@ void dpvsimpledecode_close(void *stream)
        if (s->videopixels)
                Z_Free(s->videopixels);
        if (s->sndchan != -1)
-               S_StopChannel (s->sndchan);
+               S_StopChannel (s->sndchan, true);
        if (s->framedatablocks)
                hz_bitstream_read_blocks_free(s->framedatablocks);
        if (s->bitstream)