Skip to content

Commit

Permalink
Document channel drop behavior for fn frames
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaeroxe committed Aug 19, 2024
1 parent 6b4e656 commit 1384466
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions macos/video-toolbox/src/compression_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ impl<C: Send> CompressionSession<C> {
unsafe { result(sys::VTCompressionSessionPrepareToEncodeFrames(self.inner.0).into()) }
}

/// Note: The sending half of this channel will be dropped when the channel exceeds its buffer capacity. If that happens then you are not polling this channel frequently enough.
pub fn frames(&self) -> &mpsc::Receiver<Result<CompressionSessionOutputFrame<C>, OSStatus>> {
&self.frames
}
Expand Down

0 comments on commit 1384466

Please sign in to comment.