提交 c37077e8 编写于 作者: Z Zhang Rui

ijkavformat/ijkurlhook: reset test_fail_point_next after seek

上级 9e589b5e
......@@ -221,6 +221,8 @@ static int64_t ijkurlhook_seek(URLContext *h, int64_t pos, int whence)
return seek_ret;
c->logical_pos = seek_ret;
if (c->test_fail_point)
c->test_fail_point_next = c->logical_pos + c->test_fail_point;
return seek_ret;
}
......@@ -302,6 +304,8 @@ static int64_t ijkhttphook_seek(URLContext *h, int64_t pos, int whence)
c->inject_data.retry_counter++;
}
if (c->test_fail_point)
c->test_fail_point_next = c->logical_pos + c->test_fail_point;
return c->logical_pos;
fail:
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册