change uri from uridecodebin3

Jonathan Baecker jonbae77 at gmail.com
Sat Jan 19 19:47:46 UTC 2019


Am 30.12.18 um 21:35 schrieb Jonathan Baecker:
>
> Hello everybody,
>
> when I use a playbin in python I can switch the input uri with:
>
>     playbin.connect('about-to-finish', on_about_to_finish)
>
> I saw that uridecodebin3 have also an "about-to-finish" signal... But 
> when I try with that to switch the input I get only errors and nothing 
> is happen.
>
> 0:00:18.828253162 12679 0x7fc7f004f320 WARN              decodebin3 
> gstdecodebin3.c:756:parsebin_drained_cb:<decodebin3-0> input 
> 0x55dc7e7e7b30 drained
> 0:00:18.828284575 12679 0x7fc7f004f320 WARN              decodebin3 
> gstdecodebin3.c:767:parsebin_drained_cb:<decodebin3-0> All inputs 
> drained. Posting about-to-finish
> 0:00:18.828419889 12679 0x7fc7f004f320 FIXME             decodebin3 
> gstdecodebin3-parse.c:137:check_all_streams_for_eos:<parsebin0:src_0> 
> Remove input stream
> 0:00:18.828440969 12679 0x7fc7f004f320 FIXME             decodebin3 
> gstdecodebin3-parse.c:137:check_all_streams_for_eos:<parsebin0:src_1> 
> Remove input stream
> 0:00:19.055344748 12679 0x7fc7f400c1e0 FIXME             decodebin3 
> gstdecodebin3.c:1835:multiqueue_src_probe:<multiqueue0:src_1> EOS on 
> multiqueue source pad. input:0x7fc7f4038780
> 0:00:19.187882020 12679 0x7fc7f400c000 FIXME             decodebin3 
> gstdecodebin3.c:1835:multiqueue_src_probe:<multiqueue0:src_0> EOS on 
> multiqueue source pad. input:0x7fc7f40333d0
> 0:00:19.187926164 12679 0x7fc7f400c1e0 FIXME             decodebin3 
> gstdecodebin3.c:1835:multiqueue_src_probe:<multiqueue0:src_1> EOS on 
> multiqueue source pad. input:0x7fc7f4038780
> 0:00:19.187972682 12679 0x7fc7f400c1e0 WARN                   libav 
> gstavauddec.c:630:gst_ffmpegauddec_drain:<avdec_aac0> send packet 
> failed, could not drain decoder
> 0:00:20.171922226 12679 0x7fc7f4049590 WARN                   pulse 
> pulsesink.c:702:gst_pulsering_stream_underflow_cb:<audio_sink-actual-sink-pulse> 
> Got underflow
>
> Is it not possible to switch the uri in uridecodebin3?
>
>
I can answer my self now: first I have to change the state from 
uridecodebin3 to READY, and then I can change the uri.

For me this feels strange that I have to set the state from the whole 
bin to READY, that means for a moment the element stops playing?! Does 
this not end up in very little breaks, every time my script change the uri?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190119/e4b64e01/attachment.html>


More information about the gstreamer-devel mailing list