void BulkPipe::Cancel() { ICancellableStreamPtr stream = GetCurrentStream(); print("cancelling stream ", stream.get()); if (stream) stream->Cancel(); }
void nsMediaDecoder::UnpinForSeek() { nsMediaStream* stream = GetCurrentStream(); if (!stream || !mPinnedForSeek) { return; } mPinnedForSeek = PR_FALSE; stream->Unpin(); }
void nsMediaDecoder::PinForSeek() { nsMediaStream* stream = GetCurrentStream(); if (!stream || mPinnedForSeek) { return; } mPinnedForSeek = PR_TRUE; stream->Pin(); }