Lines Matching refs:streams
276 const StreamParams* GetStream(const StreamParamsVec& streams, in GetStream() argument
279 std::find_if(streams.begin(), streams.end(), condition); in GetStream()
280 return found == streams.end() ? nullptr : &(*found); in GetStream()
283 inline const StreamParams* GetStreamBySsrc(const StreamParamsVec& streams, in GetStreamBySsrc() argument
285 return GetStream(streams, in GetStreamBySsrc()
289 inline const StreamParams* GetStreamByIds(const StreamParamsVec& streams, in GetStreamByIds() argument
292 return GetStream(streams, in GetStreamByIds()
298 inline const StreamParams* GetStream(const StreamParamsVec& streams, in GetStream() argument
300 return GetStream(streams, in GetStream()
305 bool RemoveStream(StreamParamsVec* streams, Condition condition) { in RemoveStream() argument
306 auto iter(std::remove_if(streams->begin(), streams->end(), condition)); in RemoveStream()
307 if (iter == streams->end()) in RemoveStream()
309 streams->erase(iter, streams->end()); in RemoveStream()
315 inline bool RemoveStream(StreamParamsVec* streams, in RemoveStream() argument
317 return RemoveStream(streams, in RemoveStream()
320 inline bool RemoveStreamBySsrc(StreamParamsVec* streams, uint32_t ssrc) { in RemoveStreamBySsrc() argument
321 return RemoveStream(streams, in RemoveStreamBySsrc()
324 inline bool RemoveStreamByIds(StreamParamsVec* streams, in RemoveStreamByIds() argument
327 return RemoveStream(streams, in RemoveStreamByIds()