PHZ76 / DesktopSharing

桌面共享, 支持RTSP转发, RTSP推流, RTMP推流。
MIT License
721 stars 282 forks source link

DuplicateOutput 报错,为什么会这样? #45

Open qq978358810 opened 5 months ago

qq978358810 commented 5 months ago

hr = dxgiOutput1->DuplicateOutput(d3d11device.Get(), dxgi_outputduplication.GetAddressOf());

std::cout<<(int)hr<<std::endl;
if (FAILED(hr)) {
    /* 0x887a0004: NVIDIA控制面板-->全局设置--首选图形处理器(自动选择) */
    printf("[DXGIScreenCapture] Failed to get duplicate output.\n");
    Destroy();
    return false;
}