28 Dec
2007
28 Dec
'07
5:10 p.m.
Hi, On Dec 28, 2007 10:59 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
I dont understand why you need a goto or while() ?
a simple: if(protocol_mask & BLAH_UDP){ try udp if(succeess) return 0 } if(protocol_mask & BLAH_TCP){ try tcp if(succeess) return 0; }
Most code between udp, udp-multicast and tcp is shared, so this'd lead to duplication between try udp and try tcp. The for is already there, I can just re-use that. I can also drop rtsp_default_mask, as Michael suggested, I actually wanted to do that when I thought about it later, but I was already off by then. New patch doing that attached, interested in comments on this approach. Ronald