src/ogg.c : Only call vorbis_version_string() from libvorbis if present.

This commit is contained in:
Erik de Castro Lopo 2009-03-01 22:20:35 +11:00
parent 3402a50c0b
commit 9b3d22d4fe
2 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,12 @@
* tests/win32_test.c
Fix resource leak.
* configure.ac
Detect the presence/absence of vorbis_version_string() in libvorbis.
* src/ogg.c
Only call vorbis_version_string() from libvorbis if present.
2009-02-24 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* tests/win32_test.c

View File

@ -506,7 +506,9 @@ ogg_open (SF_PRIVATE *psf)
if (psf->mode == SFM_RDWR)
return SFE_BAD_MODE_RW ;
#if HAVE_VORBIS_VERSION_STRING
psf_log_printf (psf, "Vorbis library version : %s\n", vorbis_version_string ()) ;
#endif
if (psf->mode == SFM_READ)
{ /* Call this here so it only gets called once, so no memory is leaked. */