Browse Source

Call rtcAddRemoteCandidate() with NULL mid

Paul-Louis Ageneau 4 years ago
parent
commit
ff2e83bbdc
2 changed files with 2 additions and 2 deletions
  1. 1 1
      examples/copy-paste-capi/answerer.c
  2. 1 1
      examples/copy-paste-capi/offerer.c

+ 1 - 1
examples/copy-paste-capi/answerer.c

@@ -137,7 +137,7 @@ int main(int argc, char **argv) {
 			size_t candidate_size = 0;
 			size_t candidate_size = 0;
 
 
 			if (getline(&candidate, &candidate_size, stdin)) {
 			if (getline(&candidate, &candidate_size, stdin)) {
-				rtcAddRemoteCandidate(peer->pc, candidate, "0");
+				rtcAddRemoteCandidate(peer->pc, candidate, NULL);
 				free(candidate);
 				free(candidate);
 
 
 			} else {
 			} else {

+ 1 - 1
examples/copy-paste-capi/offerer.c

@@ -140,7 +140,7 @@ int main(int argc, char **argv) {
 			char *candidate = NULL;
 			char *candidate = NULL;
 			size_t candidate_size = 0;
 			size_t candidate_size = 0;
 			if (getline(&candidate, &candidate_size, stdin)) {
 			if (getline(&candidate, &candidate_size, stdin)) {
-				rtcAddRemoteCandidate(peer->pc, candidate, "0");
+				rtcAddRemoteCandidate(peer->pc, candidate, NULL);
 				free(candidate);
 				free(candidate);
 
 
 			} else {
 			} else {