From f227e3fe4767d96925ede3f93e4f3e7e4270f50d Mon Sep 17 00:00:00 2001 From: bxaimc Date: Wed, 5 Sep 2012 03:47:35 +0000 Subject: [PATCH] Tossing nonsense out the window. Hello r1000! :D git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@1000 51a99a44-fe44-0410-b1ba-c3e57ba2b86b --- src/meta/rsd.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/meta/rsd.c b/src/meta/rsd.c index ec490ea5..5e3d73b1 100644 --- a/src/meta/rsd.c +++ b/src/meta/rsd.c @@ -963,7 +963,6 @@ fail: /* RSD6OGG */ VGMSTREAM * init_vgmstream_rsd6oogv(STREAMFILE *streamFile) { - VGMSTREAM * vgmstream = NULL; char filename[260]; off_t start_offset; @@ -998,31 +997,8 @@ VGMSTREAM * init_vgmstream_rsd6oogv(STREAMFILE *streamFile) { } #endif - /* build the VGMSTREAM */ - vgmstream = allocate_vgmstream(channel_count,loop_flag); - if (!vgmstream) goto fail; - - /* fill in the vital statistics */ - vgmstream->channels = read_32bitLE(0x8,streamFile); - vgmstream->sample_rate = read_32bitLE(0x10,streamFile); - - /* open the file for reading */ - { - int i; - STREAMFILE * file; - file = streamFile->open(streamFile,filename,STREAMFILE_DEFAULT_BUFFER_SIZE); - if (!file) goto fail; - for (i=0;ich[i].streamfile = file; - - } - } - - return vgmstream; - fail: /* clean up anything we may have opened */ - if (vgmstream) close_vgmstream(vgmstream); return NULL; }