[xiph-commits] r2966 - libfishsound/trunk/src/libfishsound

conrad at svn.annodex.net conrad at svn.annodex.net
Sun Jun 17 18:39:51 PDT 2007


Author: conrad
Date: 2007-06-17 18:39:51 -0700 (Sun, 17 Jun 2007)
New Revision: 2966

Modified:
   libfishsound/trunk/src/libfishsound/vorbis.c
Log:
fix compile for FS_ENCODE disabled (don't try to call fs_vorbis_finish())


Modified: libfishsound/trunk/src/libfishsound/vorbis.c
===================================================================
--- libfishsound/trunk/src/libfishsound/vorbis.c	2007-06-18 01:37:53 UTC (rev 2965)
+++ libfishsound/trunk/src/libfishsound/vorbis.c	2007-06-18 01:39:51 UTC (rev 2966)
@@ -548,8 +548,10 @@
 {
   FishSoundVorbisInfo * fsv = (FishSoundVorbisInfo *)fsound->codec_data;
 
+#if FS_ENCODE && HAVE_VORBISENC
   if (fsound->finalized)
     fs_vorbis_finish (fsound);
+#endif /* FS_ENCODE && HAVE_VORBISENC */
 
   if (fsv->pcm_out && fsv->pcm_out != fsv->ipcm)
     fs_free (fsv->pcm_out);



More information about the commits mailing list