diff --git a/3rdpart/media-server b/3rdpart/media-server index d54285e9..b878e869 160000 --- a/3rdpart/media-server +++ b/3rdpart/media-server @@ -1 +1 @@ -Subproject commit d54285e96260e6d56d68929ec9ace402b83ff6b0 +Subproject commit b878e869f995855d09013585de686e6a7330bd43 diff --git a/src/Record/TsMuxer.cpp b/src/Record/TsMuxer.cpp index fa31388f..f6e64fc2 100644 --- a/src/Record/TsMuxer.cpp +++ b/src/Record/TsMuxer.cpp @@ -172,6 +172,7 @@ void TsMuxer::init() { TsMuxer *muxer = (TsMuxer *) param; muxer->onTs(packet, bytes, muxer->_timestamp, muxer->_is_idr_fast_packet); muxer->_is_idr_fast_packet = false; + return 0; } }; if (_context == nullptr) { diff --git a/src/Rtp/PSDecoder.cpp b/src/Rtp/PSDecoder.cpp index 911ef046..9e76dfc9 100644 --- a/src/Rtp/PSDecoder.cpp +++ b/src/Rtp/PSDecoder.cpp @@ -26,6 +26,7 @@ PSDecoder::PSDecoder() { if(thiz->_on_decode){ thiz->_on_decode(stream, codecid, flags, pts, dts, data, bytes); } + return 0; },this); } diff --git a/src/Rtp/PSEncoder.cpp b/src/Rtp/PSEncoder.cpp index dcba1755..b6688af0 100644 --- a/src/Rtp/PSEncoder.cpp +++ b/src/Rtp/PSEncoder.cpp @@ -38,6 +38,7 @@ void PSEncoder::init() { [](void *param, int stream, void *packet, size_t bytes) { PSEncoder *thiz = (PSEncoder *) param; thiz->onPS(thiz->_timestamp, packet, bytes); + return 0; } };