No need to bash your head on the C code, we don't have any fixed limit on the numer of people that can publish in a room there. The only limit is defined from a configuration persective, so it's the cfg file (and the publishers property) you should look at. Again, changing it only there will not make the VideoRoom demo accept more people, as we have a 6 users limit in the JavaScript code too.
L.