Bug 1006484 - [RTSP][V2.0] Cannot replay RTSP streaming. r=sworkman

This commit is contained in:
Vincent Chang 2014-05-22 10:11:38 +08:00
parent 3c81bf0f30
commit 36031f56d3
2 changed files with 1 additions and 7 deletions

View File

@ -840,12 +840,6 @@ struct RtspConnectionHandler : public AHandler {
size_t trackIndex = 0;
msg->findSize("trackIndex", &trackIndex);
postQueueEOS(trackIndex, ERROR_END_OF_STREAM);
TrackInfo *info = &mTracks.editItemAt(trackIndex);
if (info) {
mRTPConn->removeStream(info->mRTPSocket, info->mRTCPSocket);
PR_Close(info->mRTPSocket);
PR_Close(info->mRTCPSocket);
}
break;
}

View File

@ -247,7 +247,7 @@ void RTSPSource::performSuspend() {
}
void RTSPSource::performSeek(int64_t seekTimeUs) {
if (mState != PLAYING && mState != PAUSING) {
if (mState != CONNECTED && mState != PLAYING && mState != PAUSING) {
return;
}