diff liboggplayer-src/src/imp.hpp @ 26:74b28a572438

Fence some more vorbis-related things.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 05 Aug 2013 18:21:01 +0300
parents 083c73ceb716
children e29773ac3ceb
line wrap: on
line diff
--- a/liboggplayer-src/src/imp.hpp	Mon Aug 05 17:34:42 2013 +0300
+++ b/liboggplayer-src/src/imp.hpp	Mon Aug 05 18:21:01 2013 +0300
@@ -5,7 +5,9 @@
 #include <fstream>
 #include <vector>
 #include <theora/theora.h>
+#ifdef VORBIS_SUPPORT
 #include <vorbis/codec.h>
+#endif
 #include <boost/thread.hpp>
 #include <boost/bind.hpp>
 #include <boost/thread/mutex.hpp>
@@ -52,10 +54,12 @@
 
 	ogg_sync_state o_sync;
 
+#ifdef VORBIS_SUPPORT
 	vorbis_comment v_comment;
 	theora_info t_info;
 	theora_comment t_comment;
 	vorbis_info v_info;
+#endif
 
 	ogg_page o_page;
 	ogg_packet o_packet;
@@ -64,8 +68,11 @@
 	ogg_stream_state o_vsstate;
 
 	theora_state t_state;
+
+#ifdef VORBIS_SUPPORT
 	vorbis_dsp_state v_state;
 	vorbis_block v_block;
+#endif
 
 	int pp_level_max;
 	int pp_level;