<div dir="ltr">Hi<div>I already tried this with posting a message and change the pipeline status to ready and unlinking/linking the decodebin and change of file location and set back status of pipeline to playing.</div><div>I also tried this with unlinking/lining the filesrc with/without previous one.</div><div><br></div><div>Thx ,</div><div>marc</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op di 10 aug. 2021 om 14:45 schreef Thornton, Keith via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="DE" style="overflow-wrap: break-word;">
<div class="gmail-m_877292842180716899WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">Probes are called from the streaming thread and in this thread you can’t change the state of the pipeline. Can you not change the state
 to READY from a different thread, change the location and then change the state to PLAYING.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">Gruesse<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b>Von:</b> gstreamer-devel <<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank">gstreamer-devel-bounces@lists.freedesktop.org</a>>
<b>Im Auftrag von </b>marc lievens via gstreamer-devel<br>
<b>Gesendet:</b> Dienstag, 10. August 2021 12:14<br>
<b>An:</b> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<b>Cc:</b> marc lievens <<a href="mailto:marc.lievens1210@telenet.be" target="_blank">marc.lievens1210@telenet.be</a>><br>
<b>Betreff:</b> How hard can it be to change filesrc location runtime<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-US">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I seems to overlook something when I change the element filesrc location at runtime.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I tried already to change the location already in different ways and dis read the documentation concerning dynamic pipelines<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">At this moment I simplified the pipeline to :  filesrc | decodebin| autovideosink, but still I seems to do something wrong.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">What I already tried is :<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="gmail-m_877292842180716899MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">In blocking probe on file source  I changed location with/without filesrc state changes(GST_STATE_NULL and sync with parent )  and pipeline changes ( GST_STATE_READY
 and GST_STATE_PLAY)<u></u><u></u></span></li><li class="gmail-m_877292842180716899MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">With 2 probes and send eos as explained  in dynamic pipeline documentation , and this with creating new filesrc and/or decodebin.<u></u><u></u></span></li><li class="gmail-m_877292842180716899MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">With posting a message and  change file location when message received to avoid deadlocks<u></u><u></u></span></li></ul>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I  really have no idea what I’m doing wrong or if it is even possible.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I would appreciate if anyone can point me in the right direction or explains me the sequence of actions to take
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Cheers ,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">marc<u></u><u></u></span></p>
</div>
</div>

</blockquote></div>