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
Родитель bc903e63d8
Коммит 67df017f38
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -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;