This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ std::string MediaTypeToString(MediaType type) {
27
27
return kMediaTypeVideo ;
28
28
case MEDIA_TYPE_DATA:
29
29
return kMediaTypeData ;
30
+ case MEDIA_TYPE_SCREEN:
31
+ return kMediaTypeScreen ;
30
32
case MEDIA_TYPE_UNSUPPORTED:
31
33
// Unsupported media stores the m=<mediatype> differently.
32
34
RTC_NOTREACHED ();
Original file line number Diff line number Diff line change @@ -539,6 +539,8 @@ class RTC_EXPORT PortAllocator : public sigslot::has_slots<> {
539
539
540
540
min_audio_port_ = min_port;
541
541
max_audio_port_ = max_port;
542
+
543
+ return true ;
542
544
}
543
545
544
546
bool SetVideoPortRange (int min_port, int max_port) {
@@ -549,6 +551,8 @@ class RTC_EXPORT PortAllocator : public sigslot::has_slots<> {
549
551
550
552
min_video_port_ = min_port;
551
553
max_video_port_ = max_port;
554
+
555
+ return true ;
552
556
}
553
557
554
558
bool SetScreenPortRange (int min_port, int max_port) {
@@ -559,6 +563,8 @@ class RTC_EXPORT PortAllocator : public sigslot::has_slots<> {
559
563
560
564
min_screen_port_ = min_port;
561
565
max_screen_port_ = max_port;
566
+
567
+ return true ;
562
568
}
563
569
564
570
bool SetDataPortRange (int min_port, int max_port) {
@@ -569,6 +575,8 @@ class RTC_EXPORT PortAllocator : public sigslot::has_slots<> {
569
575
570
576
min_data_port_ = min_port;
571
577
max_data_port_ = max_port;
578
+
579
+ return true ;
572
580
}
573
581
// Can be used to change the default numer of IPv6 network interfaces used
574
582
// (5). Can set to INT_MAX to effectively disable the limit.
You can’t perform that action at this time.
0 commit comments