Bug 1078125 - fix RtspMediaCodecReader::ReadMetadata, start the network streaming before ReadMetadata and enable play-out delay. r=cpearce, r=ethan

This commit is contained in:
Benjamin Chen 2014-11-20 10:22:39 +08:00
parent ae7a84b6e0
commit d2ba6d4789

View File

@ -93,9 +93,13 @@ nsresult
RtspMediaCodecReader::ReadMetadata(MediaInfo* aInfo,
MetadataTags** aTags)
{
mRtspResource->DisablePlayoutDelay();
EnsureActive();
nsresult rv = MediaCodecReader::ReadMetadata(aInfo, aTags);
SetIdle();
if (rv == NS_OK && !IsWaitingMediaResources()) {
EnsureActive();
mRtspResource->EnablePlayoutDelay();
}
return rv;