summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2013-08-13 22:42:05 +0200
committerGravatar waker <wakeroid@gmail.com>2013-08-13 22:42:05 +0200
commitfd7344ade6cf74f2f41205340b72f9d44dd22c35 (patch)
treef1ee34ca78bbf9d9251ac29061fd8d5368cb9324 /plugins
parentb7702d91bc9ffdb768fbd62cbe3934cb54b4bf8f (diff)
ffmpeg: add avformat_network_init call
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ffmpeg/ffmpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/ffmpeg/ffmpeg.c b/plugins/ffmpeg/ffmpeg.c
index 92c8771b..160f2d33 100644
--- a/plugins/ffmpeg/ffmpeg.c
+++ b/plugins/ffmpeg/ffmpeg.c
@@ -154,6 +154,7 @@ ffmpeg_init (DB_fileinfo_t *_info, DB_playItem_t *it) {
current_track = it;
current_info = _info;
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(54, 6, 0)
+ avformat_network_init();
info->fctx = avformat_alloc_context ();
if ((ret = avformat_open_input(&info->fctx, uri, NULL, NULL)) < 0) {
#else
@@ -542,6 +543,7 @@ ffmpeg_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) {
// open file
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(54, 6, 0)
+ avformat_network_init();
fctx = avformat_alloc_context ();
if ((ret = avformat_open_input(&fctx, uri, NULL, NULL)) < 0) {
#else
@@ -847,6 +849,7 @@ ffmpeg_read_metadata (DB_playItem_t *it) {
// open file
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(54, 6, 0)
+ avformat_network_init();
fctx = avformat_alloc_context ();
if ((ret = avformat_open_input(&fctx, uri, NULL, NULL)) < 0) {
#else