Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 8c0fe16

Browse files
authored
Fix android build errors after DiffServ changes. (#139)
1 parent 535f946 commit 8c0fe16

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

api/media_types.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ std::string MediaTypeToString(MediaType type) {
2727
return kMediaTypeVideo;
2828
case MEDIA_TYPE_DATA:
2929
return kMediaTypeData;
30+
case MEDIA_TYPE_SCREEN:
31+
return kMediaTypeScreen;
3032
case MEDIA_TYPE_UNSUPPORTED:
3133
// Unsupported media stores the m=<mediatype> differently.
3234
RTC_NOTREACHED();

p2p/base/port_allocator.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,8 @@ class RTC_EXPORT PortAllocator : public sigslot::has_slots<> {
539539

540540
min_audio_port_ = min_port;
541541
max_audio_port_ = max_port;
542+
543+
return true;
542544
}
543545

544546
bool SetVideoPortRange(int min_port, int max_port) {
@@ -549,6 +551,8 @@ class RTC_EXPORT PortAllocator : public sigslot::has_slots<> {
549551

550552
min_video_port_ = min_port;
551553
max_video_port_ = max_port;
554+
555+
return true;
552556
}
553557

554558
bool SetScreenPortRange(int min_port, int max_port) {
@@ -559,6 +563,8 @@ class RTC_EXPORT PortAllocator : public sigslot::has_slots<> {
559563

560564
min_screen_port_ = min_port;
561565
max_screen_port_ = max_port;
566+
567+
return true;
562568
}
563569

564570
bool SetDataPortRange(int min_port, int max_port) {
@@ -569,6 +575,8 @@ class RTC_EXPORT PortAllocator : public sigslot::has_slots<> {
569575

570576
min_data_port_ = min_port;
571577
max_data_port_ = max_port;
578+
579+
return true;
572580
}
573581
// Can be used to change the default numer of IPv6 network interfaces used
574582
// (5). Can set to INT_MAX to effectively disable the limit.

0 commit comments

Comments
 (0)