Re: [Live-devel] To use openRTSP in a multi-thread program

2014-01-06 Thread Ehsan Adeli
Dear Ross, Thanks for your reply. Well, I do understand your point. That was why I tried to explain every solution that came to my mind and all were not right for my case. About the first solution to run each one in a separate process, all the controlling is not killing a process or the like. I a

Re: [Live-devel] To use openRTSP in a multi-thread program

2014-01-06 Thread Ross Finlayson
> I am trying to use the openRTSP code in my program and use it to record from > multiple sources at the same time. Therefore, I need to run each instance in > a separate thread. No, the second sentence does not follow logically from the first. (See below.) > But openRTSP code is not thread s

[Live-devel] To use openRTSP in a multi-thread program

2014-01-05 Thread Ehsan Adeli
Hello all, I am trying to use the openRTSP code in my program and use it to record from multiple sources at the same time. Therefore, I need to run each instance in a separate thread. But openRTSP code is not thread safe (many global variables). I will be left with three options: 1- To run openRTS