[Live-devel] Using event triggers
Felix Radensky
felix at embedded-sol.com
Thu Feb 17 10:49:48 PST 2011
Hi Ross,
On 02/14/2011 03:11 AM, Ross Finlayson wrote:
>> I don't have any file descriptors added to live555 event loop. This
>> causes code is BasicTaskScheduler::SingleStep() to produce the
>> following error:
>>
>> BasicTaskScheduler::SingleStep(): select() fails: Bad file descriptor
>
> This shows that your code - perhaps indirectly - has called
> "TaskScheduler:: turnOnBackgroundReadHandling()" with an invalid
> socket number (perhaps, a socket number that has already been
> closed?). Note that the error can also refer to network sockets;
> not just sockets from open files. (In Unix, these are one and the
> same.)
>
> Does your code contain any calls to "turnOnBackgroundReadHandler()"?
> Or to "ByteStreamFileSource::createNew()"? Or to
> "BasicUDPSource::createNew()"?
>
> Or perhaps you're closing some open files (or "Groupsock" or
> "RTPSource" or "RTCPInstance" objects) when you shouldn't be?
Thanks for a prompt reply. I was using live555 from 2 different
threads, which is not supported.
Moving everything into a single thread fixed my problem.
Thanks for a great software !
Felix.
More information about the live-devel
mailing list