test/tvlc.cc
/// This should trigger a stall exception.
///
This should trigger a stall exception.
This should trigger a stall exception .
bool do_flac_stall( spPlayer vlcp )
{
    LOG_INFO(Lgr) << "Play a 6 second flac file for 20 seconds.";
    try {
        spSource spTestSrc1 { load_test_source(1,"testFlacFile") };
        spTestSrc1->set_quiet_okay(false);  
        vlcp->play( spTestSrc1 );
        monitor_play( vlcp, spTestSrc1, 10 );
    } catch( Player_media_exception & ) {
        LOG_INFO(Lgr) << "Caught expected exception.";
        vlcp->stop();
        return true;
    }
    vlcp->stop();
    return false;
}
bool do_flac_stall ( spPlayer vlcp ) { LOG_INFO ( Lgr ) << " " ; try { spSource spTestSrc1 { load_test_source ( 1 , " " ) } ; spTestSrc1 -> set_quiet_okay ( false ) ; vlcp -> play ( spTestSrc1 ) ; monitor_play ( vlcp , spTestSrc1 , 10 ) ; } catch ( Player_media_exception & ) { LOG_INFO ( Lgr ) << " " ; vlcp -> stop ( ) ; return true ; } vlcp -> stop ( ) ; return false ; }
This should trigger a stall exception.
This should trigger a stall exception .
// so we track progress