diff options
Diffstat (limited to 'src/combined/ffmpeg/ffmpeg_decoder.c')
-rw-r--r-- | src/combined/ffmpeg/ffmpeg_decoder.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/combined/ffmpeg/ffmpeg_decoder.c b/src/combined/ffmpeg/ffmpeg_decoder.c index e5480cc39..4915b538e 100644 --- a/src/combined/ffmpeg/ffmpeg_decoder.c +++ b/src/combined/ffmpeg/ffmpeg_decoder.c @@ -29,6 +29,10 @@ #include "ffmpeg_decoder.h" #include "ffmpeg_compat.h" +#ifdef HAVE_AVFORMAT +#include <libavformat/avformat.h> // av_register_all() +#endif + /* * common initialisation */ @@ -40,6 +44,11 @@ void init_once_routine(void) { pthread_mutex_init(&ffmpeg_lock, NULL); avcodec_init(); avcodec_register_all(); + +#ifdef HAVE_AVFORMAT + av_register_all(); + avformat_network_init(); +#endif } /* @@ -52,5 +61,8 @@ const plugin_info_t xine_plugin_info[] EXPORTED = { { PLUGIN_VIDEO_DECODER, 19, "ffmpeg-wmv8", XINE_VERSION_CODE, &dec_info_ffmpeg_wmv8, init_video_plugin }, { PLUGIN_VIDEO_DECODER, 19, "ffmpeg-wmv9", XINE_VERSION_CODE, &dec_info_ffmpeg_wmv9, init_video_plugin }, { PLUGIN_AUDIO_DECODER, 16, "ffmpegaudio", XINE_VERSION_CODE, &dec_info_ffmpeg_audio, init_audio_plugin }, +#ifdef HAVE_AVFORMAT + { PLUGIN_INPUT, 18, INPUT_AVIO_ID, XINE_VERSION_CODE, &input_info_avio, init_avio_input_plugin }, +#endif { PLUGIN_NONE, 0, "", 0, NULL, NULL } }; |