正在显示
15 个修改的文件
包含
60 行增加
和
3 行删除
| @@ -335,6 +335,7 @@ Remark: | @@ -335,6 +335,7 @@ Remark: | ||
| 335 | 335 | ||
| 336 | ## History | 336 | ## History |
| 337 | 337 | ||
| 338 | +* v2.0, 2015-10-01, for [#495][bug #495] decrease the srs-librtmp size. 2.0.193 | ||
| 338 | * v2.0, 2015-09-23, for [#485][bug #485] error when arm glibc 2.15+ or not i386/x86_64/amd64. 2.0.192 | 339 | * v2.0, 2015-09-23, for [#485][bug #485] error when arm glibc 2.15+ or not i386/x86_64/amd64. 2.0.192 |
| 339 | * v2.0, 2015-09-23, for [#485][bug #485] srs for respberrypi and cubieboard. 2.0.191 | 340 | * v2.0, 2015-09-23, for [#485][bug #485] srs for respberrypi and cubieboard. 2.0.191 |
| 340 | * v2.0, 2015-09-21, fix [#484][bug #484] hotfix the openssl build script 2.0.190 | 341 | * v2.0, 2015-09-21, fix [#484][bug #484] hotfix the openssl build script 2.0.190 |
| @@ -1027,6 +1028,7 @@ Winlin | @@ -1027,6 +1028,7 @@ Winlin | ||
| 1027 | [bug #474]: https://github.com/simple-rtmp-server/srs/issues/474 | 1028 | [bug #474]: https://github.com/simple-rtmp-server/srs/issues/474 |
| 1028 | [bug #484]: https://github.com/simple-rtmp-server/srs/issues/484 | 1029 | [bug #484]: https://github.com/simple-rtmp-server/srs/issues/484 |
| 1029 | [bug #485]: https://github.com/simple-rtmp-server/srs/issues/485 | 1030 | [bug #485]: https://github.com/simple-rtmp-server/srs/issues/485 |
| 1031 | +[bug #495]: https://github.com/simple-rtmp-server/srs/issues/495 | ||
| 1030 | [bug #475]: https://github.com/simple-rtmp-server/srs/issues/475 | 1032 | [bug #475]: https://github.com/simple-rtmp-server/srs/issues/475 |
| 1031 | [bug #458]: https://github.com/simple-rtmp-server/srs/issues/458 | 1033 | [bug #458]: https://github.com/simple-rtmp-server/srs/issues/458 |
| 1032 | [bug #454]: https://github.com/simple-rtmp-server/srs/issues/454 | 1034 | [bug #454]: https://github.com/simple-rtmp-server/srs/issues/454 |
| @@ -37,6 +37,11 @@ fi | @@ -37,6 +37,11 @@ fi | ||
| 37 | if [ $SRS_CUBIE = YES ]; then | 37 | if [ $SRS_CUBIE = YES ]; then |
| 38 | echo "#define SRS_CUBIE" >> $SRS_AUTO_HEADERS_H | 38 | echo "#define SRS_CUBIE" >> $SRS_AUTO_HEADERS_H |
| 39 | fi | 39 | fi |
| 40 | +if [ $SRS_EXPORT_LIBRTMP_PROJECT != NO ]; then | ||
| 41 | + echo "#define SRS_EXPORT_LIBRTMP" >> $SRS_AUTO_HEADERS_H | ||
| 42 | +else | ||
| 43 | + echo "#undef SRS_EXPORT_LIBRTMP" >> $SRS_AUTO_HEADERS_H | ||
| 44 | +fi | ||
| 40 | 45 | ||
| 41 | echo "" >> $SRS_AUTO_HEADERS_H | 46 | echo "" >> $SRS_AUTO_HEADERS_H |
| 42 | 47 |
| @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 31 | // current release version | 31 | // current release version |
| 32 | #define VERSION_MAJOR 2 | 32 | #define VERSION_MAJOR 2 |
| 33 | #define VERSION_MINOR 0 | 33 | #define VERSION_MINOR 0 |
| 34 | -#define VERSION_REVISION 192 | 34 | +#define VERSION_REVISION 193 |
| 35 | 35 | ||
| 36 | // server info. | 36 | // server info. |
| 37 | #define RTMP_SIG_SRS_KEY "SRS" | 37 | #define RTMP_SIG_SRS_KEY "SRS" |
| @@ -23,6 +23,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -23,6 +23,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 23 | 23 | ||
| 24 | #include <srs_kernel_aac.hpp> | 24 | #include <srs_kernel_aac.hpp> |
| 25 | 25 | ||
| 26 | +#if !defined(SRS_EXPORT_LIBRTMP) | ||
| 27 | + | ||
| 26 | // for srs-librtmp, @see https://github.com/simple-rtmp-server/srs/issues/213 | 28 | // for srs-librtmp, @see https://github.com/simple-rtmp-server/srs/issues/213 |
| 27 | #ifndef _WIN32 | 29 | #ifndef _WIN32 |
| 28 | #include <unistd.h> | 30 | #include <unistd.h> |
| @@ -218,3 +220,5 @@ int SrsAacEncoder::write_audio(int64_t timestamp, char* data, int size) | @@ -218,3 +220,5 @@ int SrsAacEncoder::write_audio(int64_t timestamp, char* data, int size) | ||
| 218 | return ret; | 220 | return ret; |
| 219 | } | 221 | } |
| 220 | 222 | ||
| 223 | +#endif | ||
| 224 | + |
| @@ -29,6 +29,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -29,6 +29,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 29 | */ | 29 | */ |
| 30 | #include <srs_core.hpp> | 30 | #include <srs_core.hpp> |
| 31 | 31 | ||
| 32 | +#if !defined(SRS_EXPORT_LIBRTMP) | ||
| 33 | + | ||
| 32 | #include <string> | 34 | #include <string> |
| 33 | 35 | ||
| 34 | #include <srs_kernel_codec.hpp> | 36 | #include <srs_kernel_codec.hpp> |
| @@ -71,3 +73,5 @@ public: | @@ -71,3 +73,5 @@ public: | ||
| 71 | 73 | ||
| 72 | #endif | 74 | #endif |
| 73 | 75 | ||
| 76 | +#endif | ||
| 77 | + |
| @@ -380,6 +380,8 @@ int SrsCodecSample::add_sample_unit(char* bytes, int size) | @@ -380,6 +380,8 @@ int SrsCodecSample::add_sample_unit(char* bytes, int size) | ||
| 380 | return ret; | 380 | return ret; |
| 381 | } | 381 | } |
| 382 | 382 | ||
| 383 | +#if !defined(SRS_EXPORT_LIBRTMP) | ||
| 384 | + | ||
| 383 | SrsAvcAacCodec::SrsAvcAacCodec() | 385 | SrsAvcAacCodec::SrsAvcAacCodec() |
| 384 | { | 386 | { |
| 385 | avc_parse_sps = true; | 387 | avc_parse_sps = true; |
| @@ -1225,3 +1227,5 @@ int SrsAvcAacCodec::avc_demux_ibmf_format(SrsStream* stream, SrsCodecSample* sam | @@ -1225,3 +1227,5 @@ int SrsAvcAacCodec::avc_demux_ibmf_format(SrsStream* stream, SrsCodecSample* sam | ||
| 1225 | return ret; | 1227 | return ret; |
| 1226 | } | 1228 | } |
| 1227 | 1229 | ||
| 1230 | +#endif | ||
| 1231 | + |
| @@ -525,6 +525,8 @@ enum SrsAvcLevel | @@ -525,6 +525,8 @@ enum SrsAvcLevel | ||
| 525 | }; | 525 | }; |
| 526 | std::string srs_codec_avc_level2str(SrsAvcLevel level); | 526 | std::string srs_codec_avc_level2str(SrsAvcLevel level); |
| 527 | 527 | ||
| 528 | +#if !defined(SRS_EXPORT_LIBRTMP) | ||
| 529 | + | ||
| 528 | /** | 530 | /** |
| 529 | * the h264/avc and aac codec, for media stream. | 531 | * the h264/avc and aac codec, for media stream. |
| 530 | * | 532 | * |
| @@ -663,3 +665,6 @@ private: | @@ -663,3 +665,6 @@ private: | ||
| 663 | }; | 665 | }; |
| 664 | 666 | ||
| 665 | #endif | 667 | #endif |
| 668 | + | ||
| 669 | +#endif | ||
| 670 | + |
| @@ -23,6 +23,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -23,6 +23,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 23 | 23 | ||
| 24 | #include <srs_kernel_mp3.hpp> | 24 | #include <srs_kernel_mp3.hpp> |
| 25 | 25 | ||
| 26 | +#if !defined(SRS_EXPORT_LIBRTMP) | ||
| 27 | + | ||
| 26 | // for srs-librtmp, @see https://github.com/simple-rtmp-server/srs/issues/213 | 28 | // for srs-librtmp, @see https://github.com/simple-rtmp-server/srs/issues/213 |
| 27 | #ifndef _WIN32 | 29 | #ifndef _WIN32 |
| 28 | #include <unistd.h> | 30 | #include <unistd.h> |
| @@ -125,3 +127,5 @@ int SrsMp3Encoder::write_audio(int64_t timestamp, char* data, int size) | @@ -125,3 +127,5 @@ int SrsMp3Encoder::write_audio(int64_t timestamp, char* data, int size) | ||
| 125 | return writer->write(data + stream->pos(), size - stream->pos(), NULL); | 127 | return writer->write(data + stream->pos(), size - stream->pos(), NULL); |
| 126 | } | 128 | } |
| 127 | 129 | ||
| 130 | +#endif | ||
| 131 | + |
| @@ -29,6 +29,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -29,6 +29,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 29 | */ | 29 | */ |
| 30 | #include <srs_core.hpp> | 30 | #include <srs_core.hpp> |
| 31 | 31 | ||
| 32 | +#if !defined(SRS_EXPORT_LIBRTMP) | ||
| 33 | + | ||
| 32 | #include <string> | 34 | #include <string> |
| 33 | 35 | ||
| 34 | class SrsStream; | 36 | class SrsStream; |
| @@ -68,3 +70,5 @@ public: | @@ -68,3 +70,5 @@ public: | ||
| 68 | 70 | ||
| 69 | #endif | 71 | #endif |
| 70 | 72 | ||
| 73 | +#endif | ||
| 74 | + |
| @@ -23,6 +23,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -23,6 +23,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 23 | 23 | ||
| 24 | #include <srs_kernel_ts.hpp> | 24 | #include <srs_kernel_ts.hpp> |
| 25 | 25 | ||
| 26 | +#if !defined(SRS_EXPORT_LIBRTMP) | ||
| 27 | + | ||
| 26 | // for srs-librtmp, @see https://github.com/simple-rtmp-server/srs/issues/213 | 28 | // for srs-librtmp, @see https://github.com/simple-rtmp-server/srs/issues/213 |
| 27 | #ifndef _WIN32 | 29 | #ifndef _WIN32 |
| 28 | #include <unistd.h> | 30 | #include <unistd.h> |
| @@ -3212,4 +3214,5 @@ int SrsTsEncoder::flush_video() | @@ -3212,4 +3214,5 @@ int SrsTsEncoder::flush_video() | ||
| 3212 | return ret; | 3214 | return ret; |
| 3213 | } | 3215 | } |
| 3214 | 3216 | ||
| 3217 | +#endif | ||
| 3215 | 3218 |
| @@ -29,6 +29,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -29,6 +29,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 29 | */ | 29 | */ |
| 30 | #include <srs_core.hpp> | 30 | #include <srs_core.hpp> |
| 31 | 31 | ||
| 32 | +#if !defined(SRS_EXPORT_LIBRTMP) | ||
| 33 | + | ||
| 32 | #include <string> | 34 | #include <string> |
| 33 | #include <map> | 35 | #include <map> |
| 34 | #include <vector> | 36 | #include <vector> |
| @@ -1656,3 +1658,5 @@ private: | @@ -1656,3 +1658,5 @@ private: | ||
| 1656 | 1658 | ||
| 1657 | #endif | 1659 | #endif |
| 1658 | 1660 | ||
| 1661 | +#endif | ||
| 1662 | + |
| @@ -23,6 +23,8 @@ | @@ -23,6 +23,8 @@ | ||
| 23 | 23 | ||
| 24 | #include <srs_http_stack.hpp> | 24 | #include <srs_http_stack.hpp> |
| 25 | 25 | ||
| 26 | +#if !defined(SRS_EXPORT_LIBRTMP) | ||
| 27 | + | ||
| 26 | #include <stdlib.h> | 28 | #include <stdlib.h> |
| 27 | #include <sstream> | 29 | #include <sstream> |
| 28 | #include <algorithm> | 30 | #include <algorithm> |
| @@ -779,3 +781,6 @@ char* ISrsHttpMessage::http_ts_send_buffer() | @@ -779,3 +781,6 @@ char* ISrsHttpMessage::http_ts_send_buffer() | ||
| 779 | { | 781 | { |
| 780 | return _http_ts_send_buffer; | 782 | return _http_ts_send_buffer; |
| 781 | } | 783 | } |
| 784 | + | ||
| 785 | +#endif | ||
| 786 | + |
| @@ -25,10 +25,12 @@ | @@ -25,10 +25,12 @@ | ||
| 25 | #define SRS_PROTOCOL_HTTP_HPP | 25 | #define SRS_PROTOCOL_HTTP_HPP |
| 26 | 26 | ||
| 27 | /* | 27 | /* |
| 28 | - #include <srs_http_stack.hpp> | ||
| 29 | - */ | 28 | +#include <srs_http_stack.hpp> |
| 29 | +*/ | ||
| 30 | #include <srs_core.hpp> | 30 | #include <srs_core.hpp> |
| 31 | 31 | ||
| 32 | +#if !defined(SRS_EXPORT_LIBRTMP) | ||
| 33 | + | ||
| 32 | #include <map> | 34 | #include <map> |
| 33 | #include <string> | 35 | #include <string> |
| 34 | #include <vector> | 36 | #include <vector> |
| @@ -536,3 +538,6 @@ public: | @@ -536,3 +538,6 @@ public: | ||
| 536 | }; | 538 | }; |
| 537 | 539 | ||
| 538 | #endif | 540 | #endif |
| 541 | + | ||
| 542 | +#endif | ||
| 543 | + |
| @@ -23,6 +23,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -23,6 +23,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 23 | 23 | ||
| 24 | #include <srs_rtsp_stack.hpp> | 24 | #include <srs_rtsp_stack.hpp> |
| 25 | 25 | ||
| 26 | +#if !defined(SRS_EXPORT_LIBRTMP) | ||
| 27 | + | ||
| 26 | #include <stdlib.h> | 28 | #include <stdlib.h> |
| 27 | #include <map> | 29 | #include <map> |
| 28 | using namespace std; | 30 | using namespace std; |
| @@ -1182,3 +1184,5 @@ int SrsRtspStack::recv_token(std::string& token, SrsRtspTokenState& state, char | @@ -1182,3 +1184,5 @@ int SrsRtspStack::recv_token(std::string& token, SrsRtspTokenState& state, char | ||
| 1182 | 1184 | ||
| 1183 | #endif | 1185 | #endif |
| 1184 | 1186 | ||
| 1187 | +#endif | ||
| 1188 | + |
| @@ -30,6 +30,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -30,6 +30,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 30 | 30 | ||
| 31 | #include <srs_core.hpp> | 31 | #include <srs_core.hpp> |
| 32 | 32 | ||
| 33 | +#if !defined(SRS_EXPORT_LIBRTMP) | ||
| 34 | + | ||
| 33 | #include <string> | 35 | #include <string> |
| 34 | #include <sstream> | 36 | #include <sstream> |
| 35 | 37 | ||
| @@ -714,3 +716,5 @@ private: | @@ -714,3 +716,5 @@ private: | ||
| 714 | 716 | ||
| 715 | #endif | 717 | #endif |
| 716 | 718 | ||
| 719 | +#endif | ||
| 720 | + |
-
请 注册 或 登录 后发表评论