Bug 1088538 - [RTSP] System crash in the end of playback due to NULL accessUnit. r=ettseng

This commit is contained in:
Jonathan Hao 2014-10-27 16:24:31 +08:00
Родитель ef426b8de7
Коммит 3033fd14c8
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -691,7 +691,7 @@ void RTSPSource::onTrackDataAvailable(size_t trackIndex)
status_t err = dequeueAccessUnit(info->mIsAudio, &accessUnit);
if (err == -EWOULDBLOCK) {
if (err == -EWOULDBLOCK || err == ERROR_END_OF_STREAM) {
return;
} else if (err == INFO_DISCONTINUITY) {
nsRefPtr<nsIStreamingProtocolMetaData> meta;