mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #155, fix all warnings for mac.
This commit is contained in:
parent
51967afb52
commit
a15ce1147f
12 changed files with 148 additions and 148 deletions
|
@ -262,7 +262,6 @@ private:
|
|||
|
||||
SrsHds::SrsHds(SrsSource *s)
|
||||
: currentSegment(NULL)
|
||||
, source(s)
|
||||
, fragment_index(1)
|
||||
, video_sh(NULL)
|
||||
, audio_sh(NULL)
|
||||
|
|
|
@ -55,7 +55,6 @@ private:
|
|||
private:
|
||||
std::list<SrsHdsFragment *> fragments;
|
||||
SrsHdsFragment *currentSegment;
|
||||
SrsSource *source;
|
||||
int fragment_index;
|
||||
SrsSharedPtrMessage *video_sh;
|
||||
SrsSharedPtrMessage *audio_sh;
|
||||
|
|
|
@ -932,8 +932,8 @@ int SrsHttpResponseReader::read_chunked(std::string& data)
|
|||
srs_assert(length >= 3);
|
||||
|
||||
// it's ok to set the pos and pos+1 to NULL.
|
||||
at[length - 1] = NULL;
|
||||
at[length - 2] = NULL;
|
||||
at[length - 1] = 0;
|
||||
at[length - 2] = 0;
|
||||
|
||||
// size is the bytes size, excludes the chunk header and end CRLF.
|
||||
int ilength = ::strtol(at, NULL, 16);
|
||||
|
|
|
@ -33,7 +33,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#include <srs_app_st.hpp>
|
||||
#include <srs_app_thread.hpp>
|
||||
|
||||
class sockaddr_in;
|
||||
struct sockaddr_in;
|
||||
|
||||
/**
|
||||
* the udp packet handler.
|
||||
|
|
|
@ -32,7 +32,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
#ifdef SRS_AUTO_STREAM_CASTER
|
||||
|
||||
class sockaddr_in;
|
||||
struct sockaddr_in;
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
|
@ -46,7 +46,7 @@ class SrsRequest;
|
|||
class SrsRawH264Stream;
|
||||
class SrsSharedPtrMessage;
|
||||
class SrsRawAacStream;
|
||||
class SrsRawAacStreamCodec;
|
||||
struct SrsRawAacStreamCodec;
|
||||
class SrsPithyPrint;
|
||||
|
||||
#include <srs_app_st.hpp>
|
||||
|
|
|
@ -51,7 +51,7 @@ class SrsStSocket;
|
|||
class SrsRtmpClient;
|
||||
class SrsRawH264Stream;
|
||||
class SrsRawAacStream;
|
||||
class SrsRawAacStreamCodec;
|
||||
struct SrsRawAacStreamCodec;
|
||||
class SrsSharedPtrMessage;
|
||||
class SrsCodecSample;
|
||||
class SrsSimpleBuffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue