# HG changeset patch # User Matti Hamalainen # Date 1375716061 -10800 # Node ID 74b28a572438779af013a2176cecc02619960a9d # Parent c85ee156a83aa862cc30755327fc1c5d523e19ab Fence some more vorbis-related things. diff -r c85ee156a83a -r 74b28a572438 liboggplayer-src/src/imp.hpp --- 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 #include #include +#ifdef VORBIS_SUPPORT #include +#endif #include #include #include @@ -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; diff -r c85ee156a83a -r 74b28a572438 liboggplayer-src/src/util.cpp --- a/liboggplayer-src/src/util.cpp Mon Aug 05 17:34:42 2013 +0300 +++ b/liboggplayer-src/src/util.cpp Mon Aug 05 18:21:01 2013 +0300 @@ -5,8 +5,10 @@ int OggPlayer::Imp::queue_page(ogg_page * page) { if (theora_p) ogg_stream_pagein(&o_tsstate, page); +#ifdef VORBIS_SUPPORT if (vorbis_p) ogg_stream_pagein(&o_vsstate, page); +#endif return 0; }