From 4110c2c58fdb1bf200127bd4004e411a736458c3 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 18 Jul 2007 16:21:18 +0000 Subject: [PATCH] We don't need ov_open anymore. :) --- dynamic_ogg.c | 8 -------- dynamic_ogg.h | 1 - 2 files changed, 9 deletions(-) diff --git a/dynamic_ogg.c b/dynamic_ogg.c index ed85d8ba..c1432bbc 100644 --- a/dynamic_ogg.c +++ b/dynamic_ogg.c @@ -52,13 +52,6 @@ int Mix_InitOgg() SDL_UnloadObject(vorbis.handle); return -1; } - vorbis.ov_open = - (int (*)(FILE *,OggVorbis_File *,char *,long)) - SDL_LoadFunction(vorbis.handle, "ov_open"); - if ( vorbis.ov_open == NULL ) { - SDL_UnloadObject(vorbis.handle); - return -1; - } vorbis.ov_open_callbacks = (int (*)(void *, OggVorbis_File *, char *, long, ov_callbacks)) SDL_LoadFunction(vorbis.handle, "ov_open_callbacks"); @@ -108,7 +101,6 @@ int Mix_InitOgg() if ( vorbis.loaded == 0 ) { vorbis.ov_clear = ov_clear; vorbis.ov_info = ov_info; - vorbis.ov_open = ov_open; vorbis.ov_open_callbacks = ov_open_callbacks; vorbis.ov_pcm_total = ov_pcm_total; vorbis.ov_read = ov_read; diff --git a/dynamic_ogg.h b/dynamic_ogg.h index ea31944e..d0974acc 100644 --- a/dynamic_ogg.h +++ b/dynamic_ogg.h @@ -32,7 +32,6 @@ typedef struct { void *handle; int (*ov_clear)(OggVorbis_File *vf); vorbis_info *(*ov_info)(OggVorbis_File *vf,int link); - int (*ov_open)(FILE *f,OggVorbis_File *vf,char *initial,long ibytes); int (*ov_open_callbacks)(void *datasource, OggVorbis_File *vf, char *initial, long ibytes, ov_callbacks callbacks); ogg_int64_t (*ov_pcm_total)(OggVorbis_File *vf,int i); #ifdef OGG_USE_TREMOR