Skip to content

Commit

Permalink
music_smpeg.c: fix compilation (for those who still care about smpeg.)
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Oct 8, 2018
1 parent adc58b6 commit e80ac28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion music_smpeg.c
Expand Up @@ -138,7 +138,7 @@ static void *SMPEG_CreateFromRW(SDL_RWops *src, int freesrc)
SDL_free(music);
return NULL;
}
smpeg.SMPEG_actualSpec(mp3, &music_spec);
smpeg.SMPEG_actualSpec(music->mp3, &music_spec);

music->freesrc = freesrc;
return music;
Expand Down Expand Up @@ -174,6 +174,7 @@ static int SMPEG_GetAudio(void *context, void *data, int bytes)
int left = (len - smpeg.SMPEG_playAudio(music->mp3, stream, len));
if (left > 0) {
stream += (len - left);
}
return left;
}

Expand Down

0 comments on commit e80ac28

Please sign in to comment.