summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/MediaCodec.cpp
diff options
context:
space:
mode:
authorRoger Jönsson <roger1.jonsson@sonymobile.com>2013-01-23 18:18:08 +0100
committerAndreas Huber <andih@google.com>2013-02-06 13:48:16 -0800
commit0955986e6c1c27ba752e293246086ea79c49d39c (patch)
tree916e9f3ecf9f371e8b11d7d04eabaec46f6ad0d9 /media/libstagefright/MediaCodec.cpp
parent1a37ee3c877165c812734b405f922f6e0d747052 (diff)
downloadframeworks_av-0955986e6c1c27ba752e293246086ea79c49d39c.zip
frameworks_av-0955986e6c1c27ba752e293246086ea79c49d39c.tar.gz
frameworks_av-0955986e6c1c27ba752e293246086ea79c49d39c.tar.bz2
Avoid rebuffering after RTSP pause
If pausing an RTSP stream, an RTSP Pause request is sent and then if the stream is immediately resumed again, an RTSP Play request will be sent to the server. But the new data after the pause will not be buffered until Sender Reports have arrived again on both channels. Meanwhile the player will resume playback and continue consuming the already existing buffer. This means that there is a risk that the buffer is emptied while waiting for sender reports. This commit simply adds a delay before the RTSP pause request is sent, allowing some additional RTSP buffering that might be needed when the stream is resumed again. Also, if the stream is resumed again before the RTSP pause request is sent, there is no need for any RTSP pause request, hence it is omitted. Change-Id: I928c8bfb5e99a6a146dcda4e51e528973ecbe065
Diffstat (limited to 'media/libstagefright/MediaCodec.cpp')
0 files changed, 0 insertions, 0 deletions