Too many files open issue

sameer_evon sameer.thapa at evontech.com
Tue Jun 12 12:41:06 UTC 2018


Thank you so much James for your reply. I tried to send the EOS event using
this code: 
gst_element_send_event(pipeline, gst_event_new_eos())

This didn't work until I tried something like below:

void worker(GstElement *pipeline) {
    gst_element_send_event(pipeline, gst_event_new_eos()); 
}

void stopListening() {
    boost::thread *th = new boost::thread(worker,pipeline);
}

i.e. when EOS was sent from another thread and not from the same thread,
then only the bus watched method was being invoked. And after that all files
were being closed properly.
I don't know why it didn't work from the same thread. It would be really
helpful if you could explain this behavior and also tell if this way of
doing it is okay or not. 
FYI the recording is not being done on the main thread as there are multiple
calls. So each recording task is being done on a different new thread.


Thanks again.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list