Fix segfault in MistInRTSP when connection to buffer lost
This commit is contained in:
parent
8846c35b1b
commit
7b18307981
2 changed files with 3 additions and 3 deletions
|
@ -401,11 +401,11 @@ namespace Mist{
|
|||
if (idx == INVALID_TRACK_ID){
|
||||
INFO_MSG("Invalid index for track number %zu", pkt.getTrackId());
|
||||
}else{
|
||||
if (!userSelect.count(idx)){
|
||||
if (!userSelect.count(idx) || !userSelect[idx]){
|
||||
WARN_MSG("Reloading track %zu, index %zu", pkt.getTrackId(), idx);
|
||||
userSelect[idx].reload(streamName, idx, COMM_STATUS_ACTIVE | COMM_STATUS_SOURCE | COMM_STATUS_DONOTTRACK);
|
||||
}
|
||||
if (userSelect[idx].getStatus() & COMM_STATUS_REQDISCONNECT){
|
||||
if (!userSelect[idx] || (userSelect[idx].getStatus() & COMM_STATUS_REQDISCONNECT)){
|
||||
Util::logExitReason(ER_CLEAN_LIVE_BUFFER_REQ, "buffer requested shutdown");
|
||||
tcpCon.close();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue