mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-04-04 20:50:53 +08:00
Player: 播放器改成同步解码
This commit is contained in:
@@ -263,8 +263,8 @@ bool FFmpegDecoder::inputFrame_l(const Frame::Ptr &frame) {
|
||||
return decodeFrame(frame->data(), frame->size(), frame->dts(), frame->pts());
|
||||
}
|
||||
|
||||
bool FFmpegDecoder::inputFrame(const Frame::Ptr &frame) {
|
||||
if (!TaskManager::isEnabled()) {
|
||||
bool FFmpegDecoder::inputFrame(const Frame::Ptr &frame, bool may_async) {
|
||||
if (!may_async || !TaskManager::isEnabled()) {
|
||||
return inputFrame_l(frame);
|
||||
}
|
||||
auto frame_cache = Frame::getCacheAbleFrame(frame);
|
||||
|
||||
Reference in New Issue
Block a user