Skip to content

Commit b31c0cc

Browse files
committed
update.
1 parent 3c26808 commit b31c0cc

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

webrtc-sys/src/nvidia/nvidia_decoder_factory.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <modules/video_coding/codecs/h264/include/h264.h>
44

55
#include <memory>
6+
#include <iostream>
67

78
#include "cuda_context.h"
89
#include "h264_decoder_impl.h"
@@ -80,9 +81,10 @@ bool NvidiaVideoDecoderFactory::IsSupported() {
8081
// Check if the CUDA context can be initialized.
8182
auto cu_context = std::make_unique<livekit::CudaContext>();
8283
if (!cu_context->Initialize()) {
83-
RTC_LOG(LS_ERROR) << "Failed to initialize CUDA context.";
84+
std::cout << "Failed to initialize CUDA context." << std::endl;
8485
return false;
8586
}
87+
std::cout << "Nvidia Decoder is supported." << std::endl;
8688
return true;
8789
}
8890

webrtc-sys/src/nvidia/nvidia_encoder_factory.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "nvidia_encoder_factory.h"
22

33
#include <memory>
4+
#include <iostream>
45

56
#include "cuda_context.h"
67
#include "h264_encoder_impl.h"
@@ -36,7 +37,7 @@ bool NvidiaVideoEncoderFactory::IsSupported() {
3637
return false;
3738
}
3839

39-
std::cout << "Nvidia Codec is supported." << std::endl;
40+
std::cout << "Nvidia Encoder is supported." << std::endl;
4041
return true;
4142
}
4243

0 commit comments

Comments
 (0)