Show
Ignore:
Timestamp:
05/11/08 17:58:19 (16 years ago)
Author:
ppalmers
Message:

improve library behavior in bad situations

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/genericavc/avc_avdevice.cpp

    r1154 r1165  
    718718        Streaming::StreamProcessor *p=m_receiveProcessors.at(n); 
    719719 
     720        // can't stop it if it's not running 
     721        if(p->getChannel() == -1) { 
     722            debugOutput(DEBUG_LEVEL_VERBOSE, "SP %d not running\n",i); 
     723            return true; 
     724        } 
     725 
    720726        if(snoopMode) { 
    721727 
     
    735741        Streaming::StreamProcessor *p=m_transmitProcessors.at(n); 
    736742 
     743        // can't stop it if it's not running 
     744        if(p->getChannel() == -1) { 
     745            debugOutput(DEBUG_LEVEL_VERBOSE, "SP %d not running\n",i); 
     746            return true; 
     747        } 
     748 
    737749        if(snoopMode) { 
    738750