music_smpeg.c: fix compilation (for those who still care about smpeg.)
authorOzkan Sezer <sezeroz@gmail.com>
Mon, 08 Oct 2018 17:30:24 +0300
changeset 900b56dbe75cac8
parent 899 f97f817b94bb
child 901 253f50984a9a
music_smpeg.c: fix compilation (for those who still care about smpeg.)
music_smpeg.c
     1.1 --- a/music_smpeg.c	Mon Oct 08 10:05:02 2018 +0300
     1.2 +++ b/music_smpeg.c	Mon Oct 08 17:30:24 2018 +0300
     1.3 @@ -138,7 +138,7 @@
     1.4          SDL_free(music);
     1.5          return NULL;
     1.6      }
     1.7 -    smpeg.SMPEG_actualSpec(mp3, &music_spec);
     1.8 +    smpeg.SMPEG_actualSpec(music->mp3, &music_spec);
     1.9  
    1.10      music->freesrc = freesrc;
    1.11      return music;
    1.12 @@ -174,6 +174,7 @@
    1.13      int left = (len - smpeg.SMPEG_playAudio(music->mp3, stream, len));
    1.14      if (left > 0) {
    1.15          stream += (len - left);
    1.16 +    }
    1.17      return left;
    1.18  }
    1.19