Don't stop streaming when UAC is running
This commit is contained in:
@@ -150,8 +150,6 @@ int display_base_t::init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
D3D_FEATURE_LEVEL featureLevels[] {
|
D3D_FEATURE_LEVEL featureLevels[] {
|
||||||
D3D_FEATURE_LEVEL_12_1,
|
|
||||||
D3D_FEATURE_LEVEL_12_0,
|
|
||||||
D3D_FEATURE_LEVEL_11_1,
|
D3D_FEATURE_LEVEL_11_1,
|
||||||
D3D_FEATURE_LEVEL_11_0,
|
D3D_FEATURE_LEVEL_11_0,
|
||||||
D3D_FEATURE_LEVEL_10_1,
|
D3D_FEATURE_LEVEL_10_1,
|
||||||
|
|||||||
+18
-2
@@ -469,7 +469,14 @@ void captureThread(
|
|||||||
std::this_thread::sleep_for(100ms);
|
std::this_thread::sleep_for(100ms);
|
||||||
}
|
}
|
||||||
|
|
||||||
reset_display(disp, encoder.dev_type);
|
while(capture_ctx_queue->running()) {
|
||||||
|
reset_display(disp, encoder.dev_type);
|
||||||
|
|
||||||
|
if(disp) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
std::this_thread::sleep_for(200ms);
|
||||||
|
}
|
||||||
if(!disp) {
|
if(!disp) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -846,7 +853,16 @@ encode_e encode_run_sync(std::vector<std::unique_ptr<sync_session_ctx_t>> &synce
|
|||||||
const auto &encoder = encoders.front();
|
const auto &encoder = encoders.front();
|
||||||
|
|
||||||
std::shared_ptr<platf::display_t> disp;
|
std::shared_ptr<platf::display_t> disp;
|
||||||
reset_display(disp, encoder.dev_type);
|
|
||||||
|
while(encode_session_ctx_queue.running()) {
|
||||||
|
reset_display(disp, encoder.dev_type);
|
||||||
|
if(disp) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::this_thread::sleep_for(200ms);
|
||||||
|
}
|
||||||
|
|
||||||
if(!disp) {
|
if(!disp) {
|
||||||
return encode_e::error;
|
return encode_e::error;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user