music_wav.c
changeset 800 cc4aef7fef64
parent 797 b4b6adff699a
child 814 0a0a27bbfdb1
     1.1 --- a/music_wav.c	Sat Oct 21 09:04:55 2017 +0300
     1.2 +++ b/music_wav.c	Sat Oct 21 01:32:12 2017 -0700
     1.3 @@ -184,7 +184,10 @@
     1.4          loop->current_play_count = loop->initial_play_count;
     1.5      }
     1.6      music->play_count = play_count;
     1.7 -    return SDL_RWseek(music->src, music->start, RW_SEEK_SET);
     1.8 +    if (SDL_RWseek(music->src, music->start, RW_SEEK_SET) < 0) {
     1.9 +        return -1;
    1.10 +    }
    1.11 +    return 0;
    1.12  }
    1.13  
    1.14  /* Play some of a stream previously started with WAV_Play() */