[Live-devel] Raw MPEG2-TS to RTP multicast

Ross Finlayson finlayson at live555.com
Thu Mar 10 14:21:48 PST 2016


> But when doing this, i am getting the following error "BasicTaskScheduler::SingleStep(): select() fails: Bad file descriptor". I have no idea why i am getting this. An indea of the root cause ?

That error message means that the socket number in the “Groupsock” object is invalid - perhaps because the “Groupsock” object itself has become invalid.  In the code that you gave earlier, you declared your “Groupsock” object ‘statically’ - i.e., on the stack.  Because you then pass a pointer to that object to a separate object that was created dynamically - i.e., on the heap - you need to make sure that the “Groupsock” object remains in scope when you later call “doEventLoop()".


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




More information about the live-devel mailing list