From 41a4b280eea21dd584225bb394a0522ddf504964 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 18 Aug 2014 09:52:53 +0200 Subject: [PATCH] input/ffmpeg: update offset after seeking --- NEWS | 1 + src/input/plugins/FfmpegInputPlugin.cxx | 1 + 2 files changed, 2 insertions(+) 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; }