Skip to content

Commit

Permalink
31bf7572の処理を出力スレッドが有効か確認してから行うように。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Nov 3, 2020
1 parent 31bf757 commit be89df8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions VCECore/vce_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2747,9 +2747,11 @@ RGY_ERR VCECore::run() {
ar = m_pEncoder->Drain();
// 出力スレッドが生存していないと、いつまでもこのループを抜けることはない
// 出力スレッドが生存していない場合はあきらめる
auto thsts = m_thOutput.wait_for(std::chrono::seconds(0));
if (thsts == std::future_status::ready) {
break;
if (m_thOutput.valid()) {
auto thsts = m_thOutput.wait_for(std::chrono::seconds(0));
if (thsts == std::future_status::ready) {
break;
}
}
}
if (ar != AMF_OK) {
Expand Down

0 comments on commit be89df8

Please sign in to comment.