Loading dom/media/webrtc/libwebrtc_overrides/modules/desktop_capture/desktop_capture_types.h +6 −3 Original line number Diff line number Diff line Loading @@ -5,9 +5,12 @@ #ifndef DOM_MEDIA_WEBRTC_LIBWEBRTCOVERRIDES_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_TYPES_H_ #define DOM_MEDIA_WEBRTC_LIBWEBRTCOVERRIDES_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_TYPES_H_ #ifdef XP_WIN // Moving this into the global namespace typedef int pid_t; // matching what used to be in #endif // video_capture_defines.h // pid_t #if !defined(XP_WIN) || defined(__MINGW32__) # include <sys/types.h> #else typedef int pid_t; #endif #include "../../third_party/libwebrtc/modules/desktop_capture/desktop_capture_types.h" Loading third_party/libwebrtc/modules/audio_coding/codecs/isac/main/source/os_specific_inline.h +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_OS_SPECIFIC_INLINE_H_ #define MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_OS_SPECIFIC_INLINE_H_ #if defined(WEBRTC_POSIX) #if (defined(WEBRTC_POSIX) || defined(__MINGW32__)) #define WebRtcIsac_lrint lrint #elif (defined(WEBRTC_ARCH_X86) && defined(WIN32)) static __inline long int WebRtcIsac_lrint(double x_dbl) { Loading third_party/libwebrtc/modules/desktop_capture/win/desktop_capture_utils.cc +13 −6 Original line number Diff line number Diff line Loading @@ -12,7 +12,9 @@ #include <string> #include "rtc_base/strings/string_builder.h" #include <cstdio> #include <cstdlib> #include "stringapiset.h" namespace webrtc { namespace desktop_capture { Loading @@ -22,11 +24,16 @@ namespace utils { std::string ComErrorToString(const _com_error& error) { char buffer[1024]; webrtc::SimpleStringBuilder string_builder(buffer); // Use _bstr_t to simplify the wchar to char conversion for ErrorMessage(). _bstr_t error_message(error.ErrorMessage()); string_builder.AppendFormat("HRESULT: 0x%08X, Message: %s", error.Error(), static_cast<const char*>(error_message)); return string_builder.str(); string_builder.AppendFormat("HRESULT: 0x%08X, Message: ", error.Error()); #ifdef _UNICODE WideCharToMultiByte(CP_UTF8, 0, error.ErrorMessage(), -1, buffer + string_builder.size(), sizeof(buffer) - string_builder.size(), nullptr, nullptr); buffer[sizeof(buffer) - 1] = 0; #else string_builder << error.ErrorMessage(); #endif return buffer; } } // namespace utils Loading third_party/libwebrtc/modules/desktop_capture/win/wgc_capture_session.cc +2 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,8 @@ #include <DispatcherQueue.h> #include <windows.graphics.capture.interop.h> #include <windows.graphics.directX.direct3d11.interop.h> #include <windows.graphics.h> #include <wrl/client.h> #include <wrl/event.h> #include <algorithm> Loading third_party/libwebrtc/modules/desktop_capture/win/window_capture_utils.h +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ #ifndef MODULES_DESKTOP_CAPTURE_WIN_WINDOW_CAPTURE_UTILS_H_ #define MODULES_DESKTOP_CAPTURE_WIN_WINDOW_CAPTURE_UTILS_H_ #include <shlobj_core.h> #include <shlobj.h> #include <windows.h> #include <wrl/client.h> Loading Loading
dom/media/webrtc/libwebrtc_overrides/modules/desktop_capture/desktop_capture_types.h +6 −3 Original line number Diff line number Diff line Loading @@ -5,9 +5,12 @@ #ifndef DOM_MEDIA_WEBRTC_LIBWEBRTCOVERRIDES_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_TYPES_H_ #define DOM_MEDIA_WEBRTC_LIBWEBRTCOVERRIDES_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_TYPES_H_ #ifdef XP_WIN // Moving this into the global namespace typedef int pid_t; // matching what used to be in #endif // video_capture_defines.h // pid_t #if !defined(XP_WIN) || defined(__MINGW32__) # include <sys/types.h> #else typedef int pid_t; #endif #include "../../third_party/libwebrtc/modules/desktop_capture/desktop_capture_types.h" Loading
third_party/libwebrtc/modules/audio_coding/codecs/isac/main/source/os_specific_inline.h +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_OS_SPECIFIC_INLINE_H_ #define MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_OS_SPECIFIC_INLINE_H_ #if defined(WEBRTC_POSIX) #if (defined(WEBRTC_POSIX) || defined(__MINGW32__)) #define WebRtcIsac_lrint lrint #elif (defined(WEBRTC_ARCH_X86) && defined(WIN32)) static __inline long int WebRtcIsac_lrint(double x_dbl) { Loading
third_party/libwebrtc/modules/desktop_capture/win/desktop_capture_utils.cc +13 −6 Original line number Diff line number Diff line Loading @@ -12,7 +12,9 @@ #include <string> #include "rtc_base/strings/string_builder.h" #include <cstdio> #include <cstdlib> #include "stringapiset.h" namespace webrtc { namespace desktop_capture { Loading @@ -22,11 +24,16 @@ namespace utils { std::string ComErrorToString(const _com_error& error) { char buffer[1024]; webrtc::SimpleStringBuilder string_builder(buffer); // Use _bstr_t to simplify the wchar to char conversion for ErrorMessage(). _bstr_t error_message(error.ErrorMessage()); string_builder.AppendFormat("HRESULT: 0x%08X, Message: %s", error.Error(), static_cast<const char*>(error_message)); return string_builder.str(); string_builder.AppendFormat("HRESULT: 0x%08X, Message: ", error.Error()); #ifdef _UNICODE WideCharToMultiByte(CP_UTF8, 0, error.ErrorMessage(), -1, buffer + string_builder.size(), sizeof(buffer) - string_builder.size(), nullptr, nullptr); buffer[sizeof(buffer) - 1] = 0; #else string_builder << error.ErrorMessage(); #endif return buffer; } } // namespace utils Loading
third_party/libwebrtc/modules/desktop_capture/win/wgc_capture_session.cc +2 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,8 @@ #include <DispatcherQueue.h> #include <windows.graphics.capture.interop.h> #include <windows.graphics.directX.direct3d11.interop.h> #include <windows.graphics.h> #include <wrl/client.h> #include <wrl/event.h> #include <algorithm> Loading
third_party/libwebrtc/modules/desktop_capture/win/window_capture_utils.h +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ #ifndef MODULES_DESKTOP_CAPTURE_WIN_WINDOW_CAPTURE_UTILS_H_ #define MODULES_DESKTOP_CAPTURE_WIN_WINDOW_CAPTURE_UTILS_H_ #include <shlobj_core.h> #include <shlobj.h> #include <windows.h> #include <wrl/client.h> Loading