Mercurial > audlegacy-plugins
diff src/flac113/plugin.c @ 491:9fc8b269e811 trunk
[svn] flac 113 plugin: small fixes
| author | giacomo |
|---|---|
| date | Sun, 21 Jan 2007 15:34:56 -0800 |
| parents | 5e375eca97da |
| children | 31d21ad70903 |
line wrap: on
line diff
--- 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
