summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/RTSPSource.h
diff options
context:
space:
mode:
authorRoger Jönsson <roger1.jonsson@sonymobile.com>2013-01-21 16:26:41 +0100
committerAndreas Huber <andih@google.com>2013-02-06 13:32:55 -0800
commitb50e83eca302a12f0fced6e7bab1b8617d63deaa (patch)
tree58992eeb6e5b4edef4a76e180c4e99be694754d9 /media/libmediaplayerservice/nuplayer/RTSPSource.h
parent0df36ec3303c2c6bf9b42c07945ac8bd234153f3 (diff)
downloadframeworks_av-b50e83eca302a12f0fced6e7bab1b8617d63deaa.zip
frameworks_av-b50e83eca302a12f0fced6e7bab1b8617d63deaa.tar.gz
frameworks_av-b50e83eca302a12f0fced6e7bab1b8617d63deaa.tar.bz2
RTSP buffering improvements
Added buffering start and end notifications for RTSP. MEDIA_INFO_BUFFERING_START is sent when buffering is started and MEDIA_INFO_BUFFERING_END is sent when the buffer has filled up. This patch also adds RTSP end of stream handling. EOS is signalled when BYE is received OR when detecting end of stream even if no actual EOS is received. Change-Id: I5cccb6845060ae6afd66d9f735b89da81476cd13
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/RTSPSource.h')
-rw-r--r--media/libmediaplayerservice/nuplayer/RTSPSource.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/nuplayer/RTSPSource.h b/media/libmediaplayerservice/nuplayer/RTSPSource.h
index cbb6f90..8451b9e 100644
--- a/media/libmediaplayerservice/nuplayer/RTSPSource.h
+++ b/media/libmediaplayerservice/nuplayer/RTSPSource.h
@@ -95,7 +95,7 @@ private:
State mState;
status_t mFinalResult;
uint32_t mDisconnectReplyID;
- bool mStartingUp;
+ bool mBuffering;
sp<ALooper> mLooper;
sp<AHandlerReflector<RTSPSource> > mReflector;
@@ -110,6 +110,9 @@ private:
int32_t mSeekGeneration;
+ int64_t mEOSTimeoutAudio;
+ int64_t mEOSTimeoutVideo;
+
sp<AnotherPacketSource> getSource(bool audio);
void onConnected();
@@ -121,6 +124,8 @@ private:
bool haveSufficientDataOnAllTracks();
+ void setEOSTimeout(bool audio, int64_t timeout);
+
DISALLOW_EVIL_CONSTRUCTORS(RTSPSource);
};