comparison libmpdemux/demux_ogg.c @ 7413:7d83ac879f51

removed dummy OGG functions - use #ifdef instead
author arpi
date Sun, 15 Sep 2002 22:38:30 +0000
parents cfb1bc3925eb
children 5262223af043
comparison
equal deleted inserted replaced
7412:ecef4f2191b2 7413:7d83ac879f51
1 1
2 #include "config.h" 2 #include "config.h"
3 3
4 #ifdef HAVE_OGGVORBIS
4 5
5 #include <stdlib.h> 6 #include <stdlib.h>
6 #include <stdio.h> 7 #include <stdio.h>
7 8
8 #include "../mp_msg.h" 9 #include "../mp_msg.h"
9 #include "../help_mp.h" 10 #include "../help_mp.h"
10 #include "stream.h" 11 #include "stream.h"
11 #include "demuxer.h" 12 #include "demuxer.h"
12 #include "stheader.h" 13 #include "stheader.h"
13
14 #ifndef HAVE_OGGVORBIS
15 /// Some dummy function to use when no Ogg and Vorbis lib are avaible
16 int demux_ogg_open(demuxer_t* demuxer) {
17 return 0;
18 }
19
20 int demux_ogg_fill_buffer(demuxer_t *d) {
21 return 0;
22 }
23
24 demuxer_t* init_avi_with_ogg(demuxer_t* demuxer) {
25 mp_msg(MSGT_DEMUX,MSGL_ERR,MSGTR_NoOggVorbis);
26 // disable audio
27 demuxer->audio->id = -2;
28 return demuxer;
29 }
30
31 void demux_close_ogg(demuxer_t* demuxer) {
32
33 }
34 #else
35 14
36 #include <ogg/ogg.h> 15 #include <ogg/ogg.h>
37 #include <vorbis/codec.h> 16 #include <vorbis/codec.h>
38 17
39 #define BLOCK_SIZE 4096 18 #define BLOCK_SIZE 4096