winlin

add todo for protocol

@@ -159,6 +159,7 @@ private: @@ -159,6 +159,7 @@ private:
159 virtual int flush_audio(); 159 virtual int flush_audio();
160 }; 160 };
161 161
  162 +//TODO: refine the ts muxer, do more jobs.
162 class SrsTSMuxer 163 class SrsTSMuxer
163 { 164 {
164 private: 165 private:
@@ -326,6 +326,7 @@ public: @@ -326,6 +326,7 @@ public:
326 /** 326 /**
327 * decode packet from message payload. 327 * decode packet from message payload.
328 */ 328 */
  329 + // TODO: use protocol to decode it.
329 virtual int decode_packet(SrsProtocol* protocol); 330 virtual int decode_packet(SrsProtocol* protocol);
330 /** 331 /**
331 * get the decoded packet which decoded by decode_packet(). 332 * get the decoded packet which decoded by decode_packet().
@@ -345,6 +346,7 @@ public: @@ -345,6 +346,7 @@ public:
345 * @stream_id, the id of stream which is created by createStream. 346 * @stream_id, the id of stream which is created by createStream.
346 * @remark, user never free the pkt, the message will auto free it. 347 * @remark, user never free the pkt, the message will auto free it.
347 */ 348 */
  349 + // TODO: refine the send methods.
348 virtual void set_packet(SrsPacket* pkt, int stream_id); 350 virtual void set_packet(SrsPacket* pkt, int stream_id);
349 /** 351 /**
350 * encode the packet to message payload bytes. 352 * encode the packet to message payload bytes.