diff --git a/src/alstream.cpp b/src/alstream.cpp index 80b50fb..01f42af 100644 --- a/src/alstream.cpp +++ b/src/alstream.cpp @@ -208,15 +208,15 @@ struct ALStreamOpenHandler : FileSystem::OpenHandler ALDataSource *source; std::string errorMsg; - ALStreamOpenHandler(SDL_IOStream &srcOps, bool looped) - : srcOps(&srcOps), looped(looped), source(0) + ALStreamOpenHandler(SDL_IOStream* &srcOps, bool looped) + : srcOps(srcOps), looped(looped), source(0) {} - bool tryRead(SDL_IOStream &ops, const char *ext) + bool tryRead(SDL_IOStream* &ops, const char *ext) { /* Copy this because we need to keep it around, * as we will continue reading data from it later */ - *srcOps = ops; + srcOps = ops; /* Try to read ogg file signature */ char sig[5] = { 0 }; diff --git a/src/filesystem.h b/src/filesystem.h index 4896d90..5dd9819 100644 --- a/src/filesystem.h +++ b/src/filesystem.h @@ -52,7 +52,7 @@ public: * After this function returns, ops becomes invalid, so don't take * references to it. Instead, copy the structure without closing * if you need to further read from it later. */ - virtual bool tryRead(SDL_IOStream &ops, const char *ext) = 0; + virtual bool tryRead(SDL_IOStream* &ops, const char *ext) = 0; }; void openRead(OpenHandler &handler,