aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/input/plugins/FfmpegInputPlugin.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input/plugins/FfmpegInputPlugin.cxx b/src/input/plugins/FfmpegInputPlugin.cxx
index b01bd2ffc..a31014c26 100644
--- a/src/input/plugins/FfmpegInputPlugin.cxx
+++ b/src/input/plugins/FfmpegInputPlugin.cxx
@@ -138,13 +138,13 @@ FfmpegInputStream::Seek(offset_type new_offset, Error &error)
{
auto result = avio_seek(h, new_offset, SEEK_SET);
- if (result >= 0) {
- eof = false;
- return true;
- } else {
+ if (result < 0) {
error.Set(ffmpeg_domain, "avio_seek() failed");
return false;
}
+
+ eof = false;
+ return true;
}
const InputPlugin input_plugin_ffmpeg = {