From 15eca9bd8373d4d7a6c32a2a320d3ac0c62bf138 Mon Sep 17 00:00:00 2001 From: alexlapa Date: Wed, 13 Nov 2024 16:52:38 +0200 Subject: [PATCH] extend logs --- crates/libwebrtc-sys/src/cpp/bridge.cc | 6 +++--- .../libwebrtc-sys/src/cpp/device_video_capturer.cc | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/libwebrtc-sys/src/cpp/bridge.cc b/crates/libwebrtc-sys/src/cpp/bridge.cc index 590f15ec7d..f04b8240b7 100644 --- a/crates/libwebrtc-sys/src/cpp/bridge.cc +++ b/crates/libwebrtc-sys/src/cpp/bridge.cc @@ -85,7 +85,7 @@ std::unique_ptr create_device_video_source( size_t height, size_t fps, uint32_t device) { - std::cout << "create_device_video_source #" << device << ", " << width << "x" << height << "x" << fps << "\n"; + std::cout << "create_device_video_source #" << device << ", " << width << "x" << height << "x" << fps << std::endl; #if __APPLE__ auto dvc = signaling_thread.BlockingCall([width, height, fps, device] { @@ -98,14 +98,14 @@ std::unique_ptr create_device_video_source( #endif if (dvc == nullptr) { - std::cout << "create_device_video_source dvc == nullptr" << "\n"; + std::cout << "create_device_video_source dvc == nullptr" << std::endl; return nullptr; } auto src = webrtc::CreateVideoTrackSourceProxy(&signaling_thread, &worker_thread, dvc.get()); if (src == nullptr) { - std::cout << "create_device_video_source src == nullptr" << "\n"; + std::cout << "create_device_video_source src == nullptr" << std::endl; return nullptr; } diff --git a/crates/libwebrtc-sys/src/cpp/device_video_capturer.cc b/crates/libwebrtc-sys/src/cpp/device_video_capturer.cc index 9a6649fb50..9554cd043d 100644 --- a/crates/libwebrtc-sys/src/cpp/device_video_capturer.cc +++ b/crates/libwebrtc-sys/src/cpp/device_video_capturer.cc @@ -20,13 +20,13 @@ rtc::scoped_refptr DeviceVideoCapturer::Create( size_t height, size_t max_fps, uint32_t device_index) { - std::cout << "DeviceVideoCapturer::Create" << "\n"; + std::cout << "DeviceVideoCapturer::Create" << std::endl; rtc::scoped_refptr capturer( new rtc::RefCountedObject()); if (!capturer->Init(width, height, max_fps, device_index)) { - std::cout << "capturer->Init() == false" << "\n"; + std::cout << "capturer->Init() == false" << std::endl; RTC_LOG(LS_ERROR) << "Failed to create DeviceVideoCapturer(w = " << width << ", h = " << height << ", fps = " << max_fps << ")"; @@ -44,7 +44,7 @@ bool DeviceVideoCapturer::Init(size_t width, size_t height, size_t max_fps, size_t capture_device_index) { - std::cout << "DeviceVideoCapturer::Init" << "\n"; + std::cout << "DeviceVideoCapturer::Init" << std::endl; std::unique_ptr device_info( webrtc::VideoCaptureFactory::CreateDeviceInfo()); @@ -54,14 +54,14 @@ bool DeviceVideoCapturer::Init(size_t width, if (device_info->GetDeviceName(static_cast(capture_device_index), device_name, sizeof(device_name), unique_name, sizeof(unique_name)) != 0) { - std::cout << "DeviceVideoCapturer::Init GetDeviceName() != 0" << "\n"; + std::cout << "DeviceVideoCapturer::Init GetDeviceName() != 0" << std::endl; Destroy(); return false; } vcm_ = webrtc::VideoCaptureFactory::Create(unique_name); if (!vcm_) { - std::cout << "DeviceVideoCapturer::Init !vcm_" << "\n"; + std::cout << "DeviceVideoCapturer::Init !vcm_" << std::endl; return false; } vcm_->RegisterCaptureDataCallback(this); @@ -73,7 +73,7 @@ bool DeviceVideoCapturer::Init(size_t width, capability_.videoType = webrtc::VideoType::kI420; if (vcm_->StartCapture(capability_) != 0) { - std::cout << "DeviceVideoCapturer::Init vcm_->StartCapture() != 0" << "\n"; + std::cout << "DeviceVideoCapturer::Init vcm_->StartCapture() != 0" << std::endl; Destroy(); return false;