Struct winsafe::dshow::IFileSinkFilter [−][src]
pub struct IFileSinkFilter { /* fields omitted */ }
Expand description
IFileSinkFilter
COM interface over
IFileSinkFilterVT
. Inherits
from IUnknown
.
Automatically calls
IUnknown::Release
when the object goes out of scope.
Implementations
Returns the raw pointer to pointer to the COM virtual table.
IUnknown::QueryInterface
method.
IFileSinkFilter::GetCurFile
method.
If you pass a AM_MEDIA_TYPE
reference to pmt
, its pbFormat
field may return a valid
reference to a format block. If so, you must free it with
CoTaskMemFree
, or you’ll have a memory
leak.
Examples
ⓘ
use winsafe::{CoMemTaskFree, dshow};
let isink: dshow::IFileSinkFilter; // initialized somewhere
let mut ammt = dshow::AM_MEDIA_TYPE::default();
unsafe {
isink.GetCurFile(Some(&mut ammt))?;
if let Some(pb_format) = ammt.pbFormat::<dshow::DVINFO>() {
CoTaskMemFree(pb_format);
}
}
IFileSinkFilter::SetFileName
method.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for IFileSinkFilter
impl Unpin for IFileSinkFilter
impl UnwindSafe for IFileSinkFilter
Blanket Implementations
Mutably borrows from an owned value. Read more