Boolean RTPSource::lookupByName(UsageEnvironment& env, char const* sourceName, RTPSource*& resultSource) { resultSource = NULL; // unless we succeed MediaSource* source; if (!MediaSource::lookupByName(env, sourceName, source)) return False; if (!source->isRTPSource()) { env.setResultMsg(sourceName, " is not a RTP source"); return False; } resultSource = (RTPSource*)source; return True; }
Boolean ADTSAudioFileSink::sourceIsCompatibleWithUs(MediaSource& source) { // The input source must be a MPEG4GenericRTPSource return source.isRTPSource(); }