Logo Search packages:      
Sourcecode: pwlib version File versions

void PVideoChannel::AttachVideoReader ( PVideoInputDevice device,
BOOL  keepCurrent = TRUE 
) [virtual]

Attach a user specific class for acquiring video

If keepCurrent is true, an abort is caused when the program attempts to attach a new reader when there is already a video reader attached.

If keepCurrent is false, the existing video reader is deleted before attaching the new reader.

Definition at line 232 of file pvidchan.cxx.

References accessMutex, CloseVideoReader(), and mpInput.

  PWaitAndSignal m(accessMutex);

  if ((mpInput != NULL) && keepCurrent)
    PAssertAlways("Error: Attempt to add video reader while one is already defined");
  mpInput = device;

Generated by  Doxygen 1.6.0   Back to index