diff options
author | Andreas Huber <andih@google.com> | 2010-08-26 11:17:32 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-08-26 11:19:08 -0700 |
commit | 0792ce7e0924ebb0dbe7b7cfcd79d12cbdb03ed2 (patch) | |
tree | 1bfc31dd13c6036b50d3cbec6eac44b114f0b3f3 /media/libstagefright/rtsp/ARTPConnection.h | |
parent | f30274368327563021fb20faeb67b5661a0f373c (diff) | |
download | frameworks_av-0792ce7e0924ebb0dbe7b7cfcd79d12cbdb03ed2.zip frameworks_av-0792ce7e0924ebb0dbe7b7cfcd79d12cbdb03ed2.tar.gz frameworks_av-0792ce7e0924ebb0dbe7b7cfcd79d12cbdb03ed2.tar.bz2 |
Support for RTP packets arriving interleaved with RTSP responses.
Change-Id: Ib32fba257da32a199134cf8943117cf3eaa07a25
Diffstat (limited to 'media/libstagefright/rtsp/ARTPConnection.h')
-rw-r--r-- | media/libstagefright/rtsp/ARTPConnection.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/media/libstagefright/rtsp/ARTPConnection.h b/media/libstagefright/rtsp/ARTPConnection.h index c535199..77f81fa 100644 --- a/media/libstagefright/rtsp/ARTPConnection.h +++ b/media/libstagefright/rtsp/ARTPConnection.h @@ -38,10 +38,13 @@ struct ARTPConnection : public AHandler { void addStream( int rtpSocket, int rtcpSocket, const sp<ASessionDescription> &sessionDesc, size_t index, - const sp<AMessage> ¬ify); + const sp<AMessage> ¬ify, + bool injected); void removeStream(int rtpSocket, int rtcpSocket); + void injectPacket(int index, const sp<ABuffer> &buffer); + // Creates a pair of UDP datagram sockets bound to adjacent ports // (the rtpSocket is bound to an even port, the rtcpSocket to the // next higher port). @@ -57,6 +60,7 @@ private: kWhatAddStream, kWhatRemoveStream, kWhatPollStreams, + kWhatInjectPacket, }; static const int64_t kSelectTimeoutUs; @@ -72,6 +76,7 @@ private: void onAddStream(const sp<AMessage> &msg); void onRemoveStream(const sp<AMessage> &msg); void onPollStreams(); + void onInjectPacket(const sp<AMessage> &msg); void onSendReceiverReports(); status_t receive(StreamInfo *info, bool receiveRTP); |