Skip to content

Commit 080bd87

Browse files
authored
Fix capture on linux (#35)
* disable desktop source on linux * fix bug:In Win32, the header file is referenced, but RTC_DESKTOP_DEVICE is not defined
1 parent ee2e48a commit 080bd87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/rtc_types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
#define LIB_WEBRTC_API
1212
#endif
1313

14+
#if !defined(RTC_DESKTOP_DEVICE) && defined(WIN32)
15+
#define RTC_DESKTOP_DEVICE
16+
#endif
17+
1418
#include "base/fixed_size_function.h"
1519
#include "base/portable.h"
1620
#include "base/refcount.h"

0 commit comments

Comments
 (0)