Bug#265885: ohphone: works with oss libpt plugins

Alistair K Phipps Alistair K Phipps <debbugs3@alistairphipps.com>, 265885@bugs.debian.org
Mon, 16 Aug 2004 13:06:34 +0100


OK I think I've found the problem with video.

If I specify --videodevice "Philips 680 webcam", which is what is
returned by PVideoInputDevice::GetDriversDeviceNames(drivers[i]), then
ohphone video works.

Lines 2283-2289 of main.cxx go to the trouble of finding the available
devices, but then this information is not used.  Line 2291 does
CreateDeviceByName( videoDevice ), where videoDevice is either
specified on the command line, or takes a default value (/dev/video0).
However, I'm guessing that CreateDeviceByName( "/dev/video0" ) no longer
works with libpt-1.6.6 - an actual device name has to be specified,
matching one returned by GetDeviceDriverNames.  Gnomemeeting makes the
user select a device from a list returned by GetDeviceDriverNames, and
then uses this value when doing CreateDeviceByName, so it works.

ohphone needs to modify its default videoDevice selection to be a bit
smarter than just using /dev/video0 - it should probably pick the
first V4L device returned by GetDeviceDriverNames.

Note this isn't the same as the ALSA sound problem - that is certainly
caused by ohphone not being "ALSA-aware" and the old libpt not
supporting ALSA at all.

HTH,

Alistair