Skip to content

Commit e290eaf

Browse files
committed
Add log printing for vaapi support.
1 parent 03e7d6a commit e290eaf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

webrtc-sys/src/vaapi/vaapi_encoder_factory.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
#include "h264_encoder_impl.h"
66

7+
#include <iostream>
8+
79
#if defined(WIN32)
810
#include "vaapi_display_win32.h"
911
using VaapiDisplay = livekit::VaapiDisplayWin32;
@@ -39,11 +41,13 @@ bool VAAPIVideoEncoderFactory::IsSupported() {
3941
// This could involve checking if the VAAPI display can be opened.
4042
VaapiDisplay vaapi_display;
4143
if (!vaapi_display.Open()) {
44+
std::cerr << "Failed to open VAAPI display." << std::endl;
4245
return false;
4346
}
4447

4548
vaapi_display.Close();
4649
// If we can open the VAAPI display, we consider it supported.
50+
std::cout << "VAAPI is supported." << std::endl;
4751
return true;
4852
}
4953

0 commit comments

Comments
 (0)