Changeset 719


Ignore:
Timestamp:
01/14/12 03:59:52 (4 months ago)
Author:
josh
Message:

-- RTMP: Make stream creation and teardown more resilient to weirdness.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/thelib/src/protocols/rtmp/basertmpprotocol.cpp

    r718 r719  
    360360 
    361361        if (_streams[streamId] == NULL) { 
    362                 FATAL("Try to close a NULL stream"); 
    363                 return false; 
     362                WARN("Try to close a NULL stream"); 
     363                return true; 
    364364        } 
    365365 
     
    462462 
    463463        if (_streams[streamId] == NULL) { 
    464                 FATAL("Try to play a stream on a NULL placeholder"); 
    465                 return NULL; 
    466         } 
     464                WARN("Try to play a stream on a NULL placeholder"); 
     465        } else { 
    467466 
    468467        if (_streams[streamId]->GetType() != ST_NEUTRAL_RTMP) { 
     
    474473        delete _streams[streamId]; 
    475474        _streams[streamId] = NULL; 
     475    } 
    476476 
    477477        BaseOutNetRTMPStream *pBaseOutNetRTMPStream = BaseOutNetRTMPStream::GetInstance( 
Note: See TracChangeset for help on using the changeset viewer.