mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-27 03:50:29 +00:00
src/ogg.c : Only call vorbis_version_string() from libvorbis if present.
This commit is contained in:
parent
3402a50c0b
commit
9b3d22d4fe
@ -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
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user