gstsouphttpsrc how to set new uri from parent bin

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

gstsouphttpsrc how to set new uri from parent bin

miskol
Hi
I want to set up new uri in gstsouphttpsrc to make http live streaming element
I made GstBin that handle eos event from child element gstsouphttpsrc
but every time I set new uri gstsouphttpsrc need to reset stat to play
I get

(gst-launch-0.10:29172): GStreamer-WARNING **:
Trying to join task 0x9b43c98 from its thread would deadlock.
You cannot change the state of an element from its streaming
thread. Use g_idle_add() or post a GstMessage on the bus to
schedule the state change from the main thread.

How can I change uri and change state to PLAYING without complicate new thread( GstTask )
Is it possible? current implementation of HLS in gstreamer use GstTask and I how I can make it better :)

I want to handle all in own element / bin.