Revision c08fb000 libavformat/allformats.c

View differences:

libavformat/allformats.c
26 26
#define REGISTER_DEMUXER(X,x) \
27 27
          if(ENABLE_##X##_DEMUXER) av_register_input_format(&x##_demuxer)
28 28
#define REGISTER_MUXDEMUX(X,x)  REGISTER_MUXER(X,x); REGISTER_DEMUXER(X,x)
29
#define REGISTER_PROTOCOL(X,x) \
30
          if(ENABLE_##X##_PROTOCOL) register_protocol(&x##_protocol)
29 31

  
30 32
/* If you do not call this function, then you can select exactly which
31 33
   formats you want to support */
......
162 164
    REGISTER_DEMUXER (X11_GRAB_DEVICE, x11_grab_device);
163 165
    REGISTER_MUXDEMUX(YUV4MPEGPIPE, yuv4mpegpipe);
164 166

  
165
#ifdef CONFIG_PROTOCOLS
166
    /* file protocols */
167
    register_protocol(&file_protocol);
168
    register_protocol(&pipe_protocol);
169
#ifdef CONFIG_NETWORK
170
    register_protocol(&udp_protocol);
171
    register_protocol(&rtp_protocol);
172
    register_protocol(&tcp_protocol);
173
    register_protocol(&http_protocol);
174
#endif
175
#endif
167
    REGISTER_PROTOCOL(FILE, file);
168
    REGISTER_PROTOCOL(HTTP, http);
169
    REGISTER_PROTOCOL(PIPE, pipe);
170
    REGISTER_PROTOCOL(RTP, rtp);
171
    REGISTER_PROTOCOL(TCP, tcp);
172
    REGISTER_PROTOCOL(UDP, udp);
176 173
}

Also available in: Unified diff