Commit 27139bf4 authored by Max Kellermann's avatar Max Kellermann

input/ffmpeg: refactor error code path

parent 12ba1957
......@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment