|
Hi,
I have developed a plugin which uses GThread.
pipeline : filesrc ! myplugin ! filesink
1.I create thread during null->ready transition and the thread is created successfully.g_thread_create is has joinable flag as true.
2. The thread function will push out the pad to filesink.
3. After the thread has finished execution i have a g_thread_exit from the thread function and corresponding g_thread_join in playing->paused state.
This is what i observe
When EOS event is sent from filesrc,the pipeline is set to paused state and the g_thread_join return 0,but i also have a warning as (gst-launch-0.10:3247): GLib-CRITICAL **: g_thread_join: assertion `thread->joinable' failed.
The issue are
1.The thread is running after g_thread_join. Hence pad push is not successful for last few buffers pushed out after paused state.
Thank you
|