Skip to content
Permalink
Browse files

timidity/readmidi.c: tidy-up the dumpstring thing for text events.

avoids a warning too, as a side effect.
  • Loading branch information
sezero committed Dec 18, 2019
1 parent d84d66b commit 39b549811275efa046f0d47fe327fc96f3bd0da5
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/codecs/timidity/readmidi.c
@@ -76,10 +76,6 @@ static int dumpstring(SDL_RWops *rw, Sint32 len, Uint8 type)
free(s);
return 0;
}
#else
static SDL_INLINE int dumpstring(SDL_RWops *rw, Sint32 len, Uint8 type) {
return SDL_RWseek(rw, len, RW_SEEK_CUR);
}
#endif

#define MIDIEVENT(at,t,ch,pa,pb) \
@@ -120,7 +116,8 @@ static MidiEventList *read_midi_event(MidiSong *song)
len=getvl(song->rw);
if (type>0 && type<16)
{
dumpstring(song->rw, len, type);
/*dumpstring(song->rw, len, type);*/ /* see above */
SDL_RWseek(rw, len, RW_SEEK_CUR);
}
else
switch(type)

0 comments on commit 39b5498

Please sign in to comment.