You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1005 B

  1. From 6e569797c0691d7fb2ba72952f81806d0477ca03 Mon Sep 17 00:00:00 2001
  2. From: Michel Promonet <michel.promonet@free.fr>
  3. Date: Tue, 11 Dec 2018 08:25:35 +0100
  4. Subject: [PATCH] replace std::stoi with atoi
  5. ---
  6. src/ServerMediaSubsession.cpp | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/src/ServerMediaSubsession.cpp b/src/ServerMediaSubsession.cpp
  9. index c90555e..9ac9a76 100755
  10. --- a/src/ServerMediaSubsession.cpp
  11. +++ b/src/ServerMediaSubsession.cpp
  12. @@ -99,7 +99,7 @@ RTPSink* BaseServerMediaSubsession::createSink(UsageEnvironment& env, Groupsock
  13. getline(is, sampleRate, '/');
  14. std::string channels("2");
  15. getline(is, channels);
  16. - videoSink = SimpleRTPSink::createNew(env, rtpGroupsock,rtpPayloadTypeIfDynamic, std::stoi(sampleRate), "audio", "L16", std::stoi(channels), True, False);
  17. + videoSink = SimpleRTPSink::createNew(env, rtpGroupsock,rtpPayloadTypeIfDynamic, atoi(sampleRate), "audio", "L16", atoi(channels), True, False);
  18. }
  19. return videoSink;
  20. }
  21. --
  22. 2.20.1