[Live-devel] Patch for wis-streamer

Baldine, Ilia ibaldine at rti.org
Fri Jul 21 11:45:04 PDT 2006


This is a small patch to wis-streamer app to make it work on a big-endian ARM (using snapgear 3.3.0, linux-2.6.x). It declares videoType explicitly to be unsigned long long (64-bit long) instead of 32-bit int. Internally in the wis-go7007 driver, during ioctl call, it is compared to a 64-bit u_int, and for some reason the arm compiler does not explicitly upconvert from 32-bit declared int to 64-bit final value, so the ioctl returns EINVAL and breaks the program, unable to set video type. With the patch all works well.
I suppose it is equally possible to patch the driver, but patching user-space seems easier.

-ilia


-------------- next part --------------
A non-text attachment was scrubbed...
Name: wis-streamer.patch
Type: application/octet-stream
Size: 1149 bytes
Desc: wis-streamer.patch
Url : http://lists.live555.com/pipermail/live-devel/attachments/20060721/54309063/attachment.obj 


More information about the live-devel mailing list