We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 566

Summary: compile fix for SDL_mixer / svn
Product: SDL_mixer Reporter: Ozkan Sezer <sezeroz>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: x86   
OS: Linux   

Description Ozkan Sezer 2008-03-12 09:51:13 UTC
SVN-3555 change to SDL_mixer/music_mad.c breaks compilation.
I think the intended return value should be mp3_mad and not
"data"; like so:

diff -urNp SDL_mixer-svn3571/music_mad.c SDL_mixer/music_mad.c
--- SDL_mixer-svn3571/music_mad.c	2008-03-12 17:55:11.000000000 +0200
+++ SDL_mixer/music_mad.c	2008-03-12 18:15:25.000000000 +0200
@@ -42,7 +42,7 @@ mad_openFile(const char *filename, SDL_A
 	return NULL;
   }
   mp3_mad->freerw = SDL_TRUE;
-  return data;
+  return mp3_mad;
 }
 
 mad_data *


Regards,
Ozkan Sezer