From 8d0b7a6cd835b1a8d8dae020b8ad50ab5451b1da Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 14 Oct 2010 00:08:50 +0000 Subject: Minor tweaks to myriad. --- src/myriad.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/myriad.cpp') diff --git a/src/myriad.cpp b/src/myriad.cpp index 8650a1c..c3eb97e 100644 --- a/src/myriad.cpp +++ b/src/myriad.cpp @@ -472,6 +472,18 @@ int Bu::Myriad::getStreamSize( int iId ) return findStream( iId )->iSize; } +bool Bu::Myriad::hasStream( int iId ) +{ + try + { + findStream( iId ); + return true; + }catch(...) + { + return false; + } +} + Bu::MyriadStream Bu::Myriad::openStream( int iId ) { //sio << "Myriad: Request to open stream: " << iId << sio.nl; -- cgit v1.2.3