<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I linked to an old version of my test
      program, the correct one is <a
        href="https://gist.github.com/hunternet93/1d8a28c9dd7b8a823005">here</a>
      and also includes the backtrace.<br>
      <br>
      I'm calling seek_simple from my bus callback, does that ensure I'm
      calling from the correct thread or is there something else I need
      to do?<br>
      <br>
      On 08/06/2014 02:41 AM, Sebastian Dröge wrote:<br>
    </div>
    <blockquote cite="mid:1407310883.2048.36.camel@thor.lan" type="cite">
      <pre wrap="">On Di, 2014-08-05 at 22:20 -0500, isaac wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hello,
I'm writing a video player application that dynamically plays videos 
based on user commands, looping each video and crossfading between them. 
My pipeline is rather complex, please see the image here 
<a class="moz-txt-link-rfc2396E" href="https://owncloud.isrv.pw/public.php?service=files&t=54bceac798e5501daa196dffc5a1a242&download"><https://owncloud.isrv.pw/public.php?service=files&t=54bceac798e5501daa196dffc5a1a242&download></a> 
for the details. In my Python code, I've inserted a probe after my 
uridecodebin elements to catch EOS events, when an EOS event comes 
through I post a message to the bus and drop the EOS. When the message 
is received, the bus callback calls seek_simple() on the message's 
source uridecodebin. However, the uridecodebin is never seeks but 
instead hangs. Please see my example script here 
<a class="moz-txt-link-rfc2396E" href="https://owncloud.isrv.pw/public.php?service=files&t=a10f944344286f87bb7583ecc8eede5c&download"><https://owncloud.isrv.pw/public.php?service=files&t=a10f944344286f87bb7583ecc8eede5c&download></a>, 
which demonstrates the issue I'm having. How can I seek the uridecodebin 
back to the start of the file?
</pre>
      </blockquote>
      <pre wrap="">
You can't seek in a pipeline from the streaming thread, otherwise it
will deadlock. You'll have to defer the seeking to another thread and
then it should work.

If it still doesn't, please provide backtraces from all threads at the
time it deadlocks.

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>