<div dir="ltr">Over the past day I had some issues with <font face="monospace, monospace">openslessrc</font>, that I think it might be useful to share. I have a pipeline with a multiple bins. For the current example, only the following two are important<div><br></div><div><font face="monospace, monospace">audio_src_bin = openslessrc ! audio/x-raw, rate=16000, format=S16LE, channels=1 ! tee</font></div><div><font face="monospace, monospace">audio_tcp_sink_bin = queue ! audioconvert ! audioresample ! audio/x-raw, channels=1, rate=16000, format=S16LE ! tcpserversink </font><br></div><div><br></div><div>which connect to each other like this</div><div><font face="monospace, monospace">audio_src_bin ! audio_tcp_sink_bin</font></div><div><br></div><div>When I initially create the elements, add them to the bins and link them together (elements and bins), I was getting no negotiation error. However when I set audio_src_bin to PLAYING, it refused and gave me the infamous "reason not-negotiated (-4)". After increasing the debug log verbose for openslessrc I managed to get the following message</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">01-28 11:04:23.564  10725-11004/esa.mobipv E/GStreamer+default﹕ 0:00:08.014928851 0x7ccf6a60 audio-info.c:267:gst_audio_info_from_caps no layout given<br>01-28 11:04:23.564  10725-11004/esa.mobipv W/GStreamer+basesrc﹕ 0:00:08.015023642 0x7ccf6a60 gstbasesrc.c:2933:gst_base_src_loop:<audio_src> error: Internal data flow error.<br>01-28 11:04:23.564  10725-11004/esa.mobipv W/GStreamer+basesrc﹕ 0:00:08.015080778 0x7ccf6a60 gstbasesrc.c:2933:gst_base_src_loop:<audio_src> error: streaming task paused, reason not-negotiated (-4)</blockquote><div><br></div><div>To fix this I had to manually specifiy</div></div><div><font face="monospace, monospace">audio_src_bin = openslessrc ! audio/x-raw, rate=16000, format=S16LE, channels=1, <b>layout=interleaved</b> ! tee</font><br></div><div><br></div><div>What I found strange is that if I didn't specify the layout, I could not even make a bin like this work.</div><div><font face="monospace, monospace">openslessrc ! fakesink</font></div><div><br></div><div>Nothing should have negotiation issues with fakesink. The element supports all capabilities. Also it would be beneficial to have the layout appear in the elements capabilities, when using gst-inspect. At least it would provide a hint. Currently it only gives this</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="monospace, monospace">Pad Templates:<br></font><font face="monospace, monospace">  SRC template: 'src'<br></font><font face="monospace, monospace">    Availability: Always<br></font><font face="monospace, monospace">    Capabilities:<br></font><font face="monospace, monospace">      audio/x-raw<br></font><font face="monospace, monospace">                 format: S16LE<br></font><font face="monospace, monospace">                   rate: 16000<br></font><font face="monospace, monospace">               channels: 1</font></blockquote></div><div><br></div><div>Cheers, </div><div>Sérgio</div></div>