aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/ogg_plugin.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2005-02-01 04:18:36 +0000
committerWarren Dukes <warren.dukes@gmail.com>2005-02-01 04:18:36 +0000
commit4422fae24d524546de34e3bae13153b0b89c4336 (patch)
tree3896b1dc9bf4f3f80316ee6ff1b6e6004271a68b /src/inputPlugins/ogg_plugin.c
parent92ad6c47fb57f73586d1df86dcd11cd38f80366b (diff)
downloadmpd-4422fae24d524546de34e3bae13153b0b89c4336.tar.gz
mpd-4422fae24d524546de34e3bae13153b0b89c4336.tar.xz
mpd-4422fae24d524546de34e3bae13153b0b89c4336.zip
remove getOggTotalTime(), wasn't used anywhere
git-svn-id: https://svn.musicpd.org/mpd/trunk@2921 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins/ogg_plugin.c')
-rw-r--r--src/inputPlugins/ogg_plugin.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/inputPlugins/ogg_plugin.c b/src/inputPlugins/ogg_plugin.c
index b681a27e0..472c2f229 100644
--- a/src/inputPlugins/ogg_plugin.c
+++ b/src/inputPlugins/ogg_plugin.c
@@ -46,26 +46,6 @@ typedef struct _OggCallbackData {
DecoderControl * dc;
} OggCallbackData;
-/* this is just for tag parsing for db import! */
-int getOggTotalTime(char * file) {
- OggVorbis_File vf;
- FILE * oggfp;
- int totalTime;
-
- if(!(oggfp = fopen(file,"r"))) return -1;
-
- if(ov_open(oggfp, &vf, NULL, 0) < 0) {
- fclose(oggfp);
- return -1;
- }
-
- totalTime = ov_time_total(&vf,-1)+0.5;
-
- ov_clear(&vf);
-
- return totalTime;
-}
-
size_t ogg_read_cb(void * ptr, size_t size, size_t nmemb, void * vdata)
{
size_t ret = 0;