diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-07-25 21:02:04 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-07-25 21:02:04 +0000 |
commit | 5f6ef66926fa50d9ee781b0addba7f6f3b6f8424 (patch) | |
tree | 3a16daff65d23e6ee485e379a4dccbaef27e5c28 /src/libflac | |
parent | 0c68d092f36d8f714be4f9a359097e06f6a65af7 (diff) | |
download | xine-lib-5f6ef66926fa50d9ee781b0addba7f6f3b6f8424.tar.gz xine-lib-5f6ef66926fa50d9ee781b0addba7f6f3b6f8424.tar.bz2 |
small housekeeping: demuxer api seeks in miliseconds
CVS patchset: 5211
CVS date: 2003/07/25 21:02:04
Diffstat (limited to 'src/libflac')
-rw-r--r-- | src/libflac/decoder_flac.c | 2 | ||||
-rw-r--r-- | src/libflac/demux_flac.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libflac/decoder_flac.c b/src/libflac/decoder_flac.c index 00f26742b..14ef172da 100644 --- a/src/libflac/decoder_flac.c +++ b/src/libflac/decoder_flac.c @@ -425,7 +425,7 @@ void *demux_flac_init_class (xine_t *xine, void *data); plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ - { PLUGIN_DEMUX, 21, "flac", XINE_VERSION_CODE, NULL, demux_flac_init_class }, + { PLUGIN_DEMUX, 22, "flac", XINE_VERSION_CODE, NULL, demux_flac_init_class }, { PLUGIN_AUDIO_DECODER, 13, "flacdec", XINE_VERSION_CODE, &dec_info_audio, init_plugin }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } }; diff --git a/src/libflac/demux_flac.c b/src/libflac/demux_flac.c index 80af4630e..6c83715d9 100644 --- a/src/libflac/demux_flac.c +++ b/src/libflac/demux_flac.c @@ -423,7 +423,7 @@ demux_flac_seek (demux_plugin_t *this_gen, off_t start_pos, int start_time) { } else { - double distance = (double)start_time*1000.0; + double distance = (double)start_time; uint64_t target_sample = (uint64_t)(distance * this->total_samples); FLAC__bool s = false; @@ -667,7 +667,7 @@ demux_flac_init_class (xine_t *xine, void *data) { #if 0 plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ - { PLUGIN_DEMUX, 21, "flac", XINE_VERSION_CODE, NULL, demux_flac_init_class }, + { PLUGIN_DEMUX, 22, "flac", XINE_VERSION_CODE, NULL, demux_flac_init_class }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } }; #endif |