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 - compile fix for SDL_mixer / svn
Summary: compile fix for SDL_mixer / svn
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-12 09:51 UTC by Ozkan Sezer
Modified: 2008-08-12 06:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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