-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RTP component as submodule after re-factoring (#1975)
* Add changes to user RTP librar with RTP serializaer & deserializer * Add error conversion * Fix clang formatting * Update submodule and minor fix * Fix size_t issue * Add RTP error code test case * Update submodule commit * Remove not a valid value for type 'RtpResult_t
- Loading branch information
Showing
10 changed files
with
162 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
cmake_minimum_required(VERSION 3.6.3) | ||
|
||
project(libkvsrtp NONE) | ||
|
||
include(ExternalProject) | ||
if (BUILD_STATIC_LIBS OR WIN32) | ||
set(LIBKVSRTP_SHARED_LIBS OFF) | ||
else() | ||
set(LIBKVSRTP_SHARED_LIBS ON) | ||
endif() | ||
|
||
ExternalProject_Add(libkvsrtp | ||
GIT_REPOSITORY https://github.com/awslabs/amazon-kinesis-video-streams-rtp.git | ||
GIT_TAG 2f53e1993d7f94867da0fd2785841a3c921f579b | ||
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/build | ||
CMAKE_ARGS | ||
-DCMAKE_INSTALL_PREFIX=${OPEN_SRC_INSTALL_PREFIX} | ||
-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} | ||
-DBUILD_SHARED_LIBS=${LIBKVSRTP_SHARED_LIBS} | ||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} | ||
BUILD_ALWAYS TRUE | ||
TEST_COMMAND "" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#define LOG_CLASS "RTPUtils" | ||
|
||
#include "../Include_i.h" | ||
|
||
STATUS convertRtpErrorCode(RtpResult_t rtpResult) | ||
{ | ||
STATUS retStatus; | ||
|
||
switch (rtpResult) { | ||
case RTP_RESULT_OK: | ||
retStatus = STATUS_SUCCESS; | ||
break; | ||
case RTP_RESULT_BAD_PARAM: | ||
retStatus = STATUS_INVALID_ARG; | ||
break; | ||
case RTP_RESULT_OUT_OF_MEMORY: | ||
retStatus = STATUS_NOT_ENOUGH_MEMORY; | ||
break; | ||
case RTP_RESULT_WRONG_VERSION: | ||
retStatus = STATUS_RTP_INVALID_VERSION; | ||
break; | ||
case RTP_RESULT_MALFORMED_PACKET: | ||
retStatus = STATUS_RTP_INPUT_PACKET_TOO_SMALL; | ||
break; | ||
default: | ||
retStatus = STATUS_RTP_UNKNOWN_ERROR; | ||
break; | ||
} | ||
|
||
return retStatus; | ||
} |
Oops, something went wrong.