How to change from source element in GStreamer pipeline while playing on android?
I want to create a android app that displays a default screen (a blue
screen), when a incoming stream is detected then the app changes to the
Iḿ using three bins to do this, which are:
1) Default src bin: The default input to the sink bink.
2) Streaming src bin: The streaming input ot the sink bin.
3) Show sink bin: Bin that displays the input on screen.
The problem is that when i try to unlink the default src bin from the show
sink bin, because the unlinking method does nothing, so i can't link the
streaming src bin to the show sink bin to change to the streaming screen.
Even removing the default src does nothin because when i try to link the
streaming src pad to the show sink pad i'm getting GST_PAD_LINK_NO_FORMAT
To do this i used a blocking/buffer probe on the streaming src bin source
pad to wait for the stream, when an incoming stream is detected then i add a
idle probe to the default src bin source pad to make the input change.
I don't have any clue of what is causing this problem, because in python it
works perfectly. I'm using GStreamer 1.15.1.