aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-18 09:52:53 +0200
committerMax Kellermann <max@duempel.org>2014-08-18 09:52:53 +0200
commit41a4b280eea21dd584225bb394a0522ddf504964 (patch)
tree3541fbca155f0ae4bdc4559a8e3a3e047a3b6cd4
parent27139bf41f145fb11ae266baafdf00297404306b (diff)
downloadmpd-41a4b280eea21dd584225bb394a0522ddf504964.tar.gz
mpd-41a4b280eea21dd584225bb394a0522ddf504964.tar.xz
mpd-41a4b280eea21dd584225bb394a0522ddf504964.zip
input/ffmpeg: update offset after seeking
-rw-r--r--NEWS1
-rw-r--r--src/input/plugins/FfmpegInputPlugin.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 31c7fad47..8c1b9904a 100644
--- a/NEWS
+++ b/NEWS
@@ -30,6 +30,7 @@ ver 0.19 (not yet released)
* input
- alsa: new input plugin
- curl: options "verify_peer" and "verify_host"
+ - ffmpeg: update offset after seeking
- mms: non-blocking I/O
- nfs: new input plugin
- smbclient: new input plugin
diff --git a/src/input/plugins/FfmpegInputPlugin.cxx b/src/input/plugins/FfmpegInputPlugin.cxx
index a31014c26..05ad20c36 100644
--- a/src/input/plugins/FfmpegInputPlugin.cxx
+++ b/src/input/plugins/FfmpegInputPlugin.cxx
@@ -143,6 +143,7 @@ FfmpegInputStream::Seek(offset_type new_offset, Error &error)
return false;
}
+ offset = result;
eof = false;
return true;
}