fix compile without OGG library trunk
authornathan
Sun, 12 Dec 2010 11:31:54 +0100
branchtrunk
changeset 3879b272a68eb4
parent 37 b31be95d6678
child 39 ba6464ebc3f9
fix compile without OGG library
decoder-ogg-stream.c
decoder-ogg-stream.h
     1.1 --- a/decoder-ogg-stream.c	Tue Dec 29 11:05:11 2009 +0100
     1.2 +++ b/decoder-ogg-stream.c	Sun Dec 12 11:31:54 2010 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  /*
     1.5   * MP3/MPlayer plugin to VDR (C++)
     1.6   *
     1.7 - * (C) 2001-2009 Stefan Huelswitt <s.huelswitt@gmx.de>
     1.8 + * (C) 2001-2010 Stefan Huelswitt <s.huelswitt@gmx.de>
     1.9   *
    1.10   * OGG stream support initialy developed by Manuel Reimer <manuel.reimer@gmx.de>
    1.11   *
    1.12 @@ -21,6 +21,8 @@
    1.13   * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
    1.14   */
    1.15  
    1.16 +#ifdef HAVE_VORBISFILE
    1.17 +
    1.18  #include <stdlib.h>
    1.19  #include <stdio.h>
    1.20  
    1.21 @@ -159,3 +161,5 @@
    1.22    file=nfile;
    1.23    info=new cNetOggInfo(nfile);
    1.24  }
    1.25 +
    1.26 +#endif //HAVE_VORBISFILE
     2.1 --- a/decoder-ogg-stream.h	Tue Dec 29 11:05:11 2009 +0100
     2.2 +++ b/decoder-ogg-stream.h	Sun Dec 12 11:31:54 2010 +0100
     2.3 @@ -1,7 +1,7 @@
     2.4  /*
     2.5   * MP3/MPlayer plugin to VDR (C++)
     2.6   *
     2.7 - * (C) 2001-2009 Stefan Huelswitt <s.huelswitt@gmx.de>
     2.8 + * (C) 2001-2010 Stefan Huelswitt <s.huelswitt@gmx.de>
     2.9   *
    2.10   * OGG stream support initialy developed by Manuel Reimer <manuel.reimer@gmx.de>
    2.11   *
    2.12 @@ -27,6 +27,8 @@
    2.13  #define DEC_OGGS     DEC_ID('O','G','G','S')
    2.14  #define DEC_OGGS_STR "OGGS"
    2.15  
    2.16 +#ifdef HAVE_VORBISFILE
    2.17 +
    2.18  #include "decoder-ogg.h"
    2.19  
    2.20  class cNetStream;
    2.21 @@ -65,4 +67,5 @@
    2.22    virtual bool IsStream(void) { return true; }
    2.23    };
    2.24  
    2.25 +#endif //HAVE_VORBISFILE
    2.26  #endif //___DECODER_OGG_STREAM_H