<div dir="auto">Ah I haven't got anything to do with the properties connected to a signal? Do you reckon that's the issue then<div dir="auto"><br></div><div dir="auto">I'm setting and getting the properties all from playing. So I can't get n-audio from playing state? </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 17 Dec 2020, 08:19 Sebastian Dröge, <<a href="mailto:sebastian@centricular.com">sebastian@centricular.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On Wed, 2020-12-16 at 20:25 +0000, Michael Johnson wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"><div dir="auto">Ah yes. Properties is highly useful. However, n-audio is by default 0, which is strange because I have 5 audio tracks</div></blockquote><div><br></div><div>Connect to the "audio-changed" signal and whenever that is emitted, check the value.</div><div><br></div><div>Before the playbin is in PAUSED state, you will always get 0 audio/video/text tracks.</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"><div dir="auto"><div dir="auto">Also setting </div><div dir="auto">pipeline.set_property("current-audio",&2) doesn't change the track. I'm pretty sure it's because I'm giving the wrong second argument</div></div></blockquote><div><br></div><div>Same as above, you have to set it after the playbin is PLAYING.</div><div><br></div><div><span><pre>-- <br></pre><div style="width:71ch">Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" target="_blank" rel="noreferrer">https://www.centricular.com</a></div><div style="width:71ch"><br></div></span></div></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>