Package: sonic-snap
Version: 1.6-1
Severity: grave
Tags: patch

Hi,

I tried sonic-snap with my tiny, cheap webcam and it segfaulted.

Attached is a patch which fixes my problem.

More info:

 * > sonic-snap-gui 
Clock resolution is 999848 nanoseconds
Control red balance (0x98090e)
min=0, max=63, default=0
Control blue balance (0x98090f)
min=0, max=63, default=32
Control exposure (0x980911)
min=592, max=65535, default=592
sonic-snap-gui: controls.cxx:93: int controls_get_max_gain(int):
Assertion `!rv' failed.
Aborted (core dumped)

 * lsusb: Bus 003 Device 006: ID 0c45:602a Microdia Meade ETX-105EC Camera

 * Kernel: Linux 2.6.14.4 using the sn9c102 driver as a module


HTH, Uwe.
-- 
Uwe Hermann <[EMAIL PROTECTED]>
http://www.hermann-uwe.de                 | http://www.crazy-hacks.org
http://www.it-services-uh.de              | http://www.phpmeat.org
http://www.unmaintained-free-software.org | http://www.holsham-traders.de
--- controls.cxx        2006-01-15 17:10:48.000000000 +0100
+++ controls.patched.cxx        2006-01-15 17:10:29.000000000 +0100
@@ -90,7 +90,7 @@ int controls_get_max_gain(int fd)
   memset (&queryctrl, 0, sizeof (queryctrl));
   queryctrl.id = V4L2_CID_GAIN;
   int rv=ioctl(fd, VIDIOC_QUERYCTRL, &queryctrl);
-  assert(!rv);
+  // assert(!rv);
   assert(!(queryctrl.flags & V4L2_CTRL_FLAG_DISABLED));
   return queryctrl.maximum;
 }

Attachment: signature.asc
Description: Digital signature

Reply via email to