Mercurial > audlegacy-plugins
changeset 491:9fc8b269e811 trunk
[svn] flac 113 plugin: small fixes
author | giacomo |
---|---|
date | Sun, 21 Jan 2007 15:34:56 -0800 |
parents | be4cde738a73 |
children | 0dd1ff7e5ba7 |
files | ChangeLog src/flac113/plugin.c |
diffstat | 2 files changed, 14 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Jan 21 15:33:20 2007 -0800 +++ b/ChangeLog Sun Jan 21 15:34:56 2007 -0800 @@ -1,3 +1,11 @@ +2007-01-21 23:33:20 +0000 Giacomo Lozito <james@develia.org> + revision [1066] + flac 112 plugin: disabled built-in http stream support + trunk/src/flac112/configure.c | 14 ++++++++++---- + trunk/src/flac112/plugin.c | 6 +++++- + 2 files changed, 15 insertions(+), 5 deletions(-) + + 2007-01-21 23:15:38 +0000 Giacomo Lozito <james@develia.org> revision [1064] flac 112 plugin: playback and detection use vfs; current situation is pretty similar to the one of flac 113 plugin
--- a/src/flac113/plugin.c Sun Jan 21 15:33:20 2007 -0800 +++ b/src/flac113/plugin.c Sun Jan 21 15:34:56 2007 -0800 @@ -621,10 +621,16 @@ if ( FLAC__stream_decoder_init_stream(decoder, read_callback_, seek_callback_, tell_callback_, length_callback_, eof_callback_, write_callback_, metadata_callback_, error_callback_, /*client_data=*/&stream_data_) != FLAC__STREAM_DECODER_INIT_STATUS_OK ) + { + vfs_fclose( stream_data_.vfsfile ); return false; + } if(!FLAC__stream_decoder_process_until_end_of_metadata(decoder)) + { + vfs_fclose( stream_data_.vfsfile ); return false; + } return true; } @@ -763,8 +769,6 @@ stream_data_struct *stream_data = (stream_data_struct *)client_data; (void)decoder; - g_print("SEEK\n"); - if ( vfs_fseek( stream_data->vfsfile , (glong)absolute_byte_offset , SEEK_SET ) < 0 ) return FLAC__STREAM_DECODER_SEEK_STATUS_ERROR; else