re-listening tcpserversrc?

fightling fightling at elektropost.org
Wed Feb 20 17:39:58 UTC 2019


On 20.02.19 17:36, MaZderMind wrote:
> Maybe it is enough to also bring the demux-element down to READY and
> back up to PLAYING?

Like this?

--
        self.tcpsrc.set_state(Gst.State.READY)
        self.demux.set_state(Gst.State.READY)
        self.demux.set_state(Gst.State.PLAYING)
--

This ends up in:

--
   DEBUG TCPAVSource[cam1]: demuxer added pad w/ caps: audio/x-raw,
format=(string)S16LE, layout=(string)interleaved,
channel-mask=(bitmask)0x0000000000000003, channels=(int)2, rate=(int)48000
   DEBUG TCPAVSource[cam1]: new demuxer-pad is an audio-pad, testing
against configured audio-caps

DEBUG Pipeline: Error-Details: #1: gstbasesrc.c(3055): gst_base_src_loop
():
/GstPipeline:pipeline0/GstBin:TCPAVSource-cam1/GstTCPServerSrc:tcpsrc-cam1:
streaming stopped, reason not-linked (-1)
--

Seems that I have to re-link tcpserversrc.

-- 
regards, fightling.

fightling at elektropost.org
fightling at jabber.ccc.de
@fightling


More information about the gstreamer-devel mailing list