[Live-devel] Bug and fix report: WISstreamer.cpp - Unable to find emulated OSS device.

Ross Finlayson finlayson at live555.com
Sun Oct 15 21:26:57 PDT 2006


>It seem that method - WISInput.cpp - line 208:
>if (sscanf(line, "%d: [%u-%*u]: digital audio\n", &m, &n) != 2) continue;
>
>match line: 16: [1- 0]: mixer
>instead of: 19: [1- 0]: digital audio
>
>I try to find reason, why there is problem in sscanf, but I have no idea
>why it behave in this way.
>Definition of sscanf is e.g. here:
>http://www.cplusplus.com/ref/cstdio/sscanf.html
>
>I test it with gcc-4.0 and gcc-4.1 and appropritiate libraries, but
>result was always same.
>
>
>So I solve this problem by adding one more cotrol after 208:
>if (strstr(line, "digital audio")== NULL) continue;
>
>After this fix wis-streame work correctly.
>
>Please consider appropritiate correction for wis-streamer.

Sorry, but I'm not going to make a change like this solely to 
compensate for one person's broken compiler (or runtime library).  If 
you're not able to fix your compiler (and/or runtime library), then 
you'll just have to continue patching your own copy of the code.

-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list