Logo Search packages:      
Sourcecode: pwlib version File versions

BOOL PVideoChannel::Open ( const PString device,
Directions  dir 
)

Open the specified device for playing or recording. The device name is platform specific and is as returned in the GetDevices() function.

Returns:
TRUE if the video device is valid for playing/recording.
Parameters:
dir  Name of video driver/device Video I/O direction

Definition at line 141 of file pvidchan.cxx.

References accessMutex, and Close().

Referenced by PVideoChannel().

{
  PWaitAndSignal m(accessMutex);

  Close();

  deviceName = dev;
  direction = dir;
  
  return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index