test/tvlc.cc
/// Play a stream, trapping all exceptions.
///
Play a stream, trapping all exceptions.
Play a stream trapping all exceptions .
bool do_playlist( spPlayer vlcp, unsigned cycles )
{
    bool result = true;
    spSource spTestSrc { load_test_source(4,"testPlaylist") };
    try {
        vlcp->play( spTestSrc );
        monitor_play( vlcp, spTestSrc, cycles );
    } catch( const std::exception &err ) {
        result = false;
    }
    vlcp->stop();
    return result;
}
bool do_playlist ( spPlayer vlcp , unsigned cycles ) { bool result = true ; spSource spTestSrc { load_test_source ( 4 , " " ) } ; try { vlcp -> play ( spTestSrc ) ; monitor_play ( vlcp , spTestSrc , cycles ) ; } catch ( const std :: exception & err ) { result = false ; } vlcp -> stop ( ) ; return result ; }
Play a stream, trapping all exceptions.
Play a stream trapping all exceptions .