ref: ded7e89d0f5ee328b88c90000dcf3e3e2cba7b88
parent: 1db716fa176d6b611083feb61f8396d73f56a04a
author: Simon Howard <[email protected]>
date: Sat Mar 17 19:47:38 EDT 2018
music: Fix bug with loop metadata tags on Windows. The .ogg / .flac music files need to be opened in binary mode, not in text mode, otherwise these won't be read properly on Windows. This fixes #982.
--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -381,7 +381,7 @@
metadata->start_time = 0;
metadata->end_time = -1;
- fs = fopen(filename, "r");
+ fs = fopen(filename, "rb");
if (fs == NULL)
{