ref_iface_IVDXInputFile_GetVideoSource - shekh/VirtualDub2 GitHub Wiki

VirtualDub Plugin SDK 1.2

IVDXInputFile interface

IVDXInputFile:: GetVideoSource

Opens a stream on an input file.

bool GetVideoSource(int index, IVDXVideoSource **ppVS);

Parameters

index Index of stream to open, where zero is the first stream, if any. Stream numbers must be contiguous.
ppVS Pointer to variable to receive video source for the stream.

Thread safety

This method is not thread-safe.

Errors

Errors may not be returned from this function (see SetError()).

Return value

True if successful, false if the stream with the given index does not exist.

Remarks

The video stream object should have an outstanding reference on it. VirtualDub will call IVDXUnknown::Release() for this reference when it is finished with the object.

It is allowed to open a video stream more than once; the returned video source objects must be independent.


Copyright (C) 2007-2012 Avery Lee.

⚠️ **GitHub.com Fallback** ⚠️