diff options
Diffstat (limited to 'media/libstagefright/rtsp/ARTPConnection.cpp')
-rw-r--r-- | media/libstagefright/rtsp/ARTPConnection.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/media/libstagefright/rtsp/ARTPConnection.cpp b/media/libstagefright/rtsp/ARTPConnection.cpp index 42a22b7..12f8f32 100644 --- a/media/libstagefright/rtsp/ARTPConnection.cpp +++ b/media/libstagefright/rtsp/ARTPConnection.cpp @@ -263,6 +263,10 @@ void ARTPConnection::onPollStreams() { } } + if (maxSocket == -1) { + return; + } + int res = select(maxSocket + 1, &rs, NULL, NULL, &tv); CHECK_GE(res, 0); @@ -292,6 +296,10 @@ void ARTPConnection::onPollStreams() { it != mStreams.end(); ++it) { StreamInfo *s = &*it; + if (s->mIsInjected) { + continue; + } + if (s->mNumRTCPPacketsReceived == 0) { // We have never received any RTCP packets on this stream, // we don't even know where to send a report. |