<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Jeff,<br>
      <br>
      This is a TI issue. In the xxx_chain functions, they spawn a
      pthread that may not be getting the pipeline state change and
      passing that information along. I've experienced your probably
      quite a bit and it's basically an architectural issue with the
      plugin.<br>
      <br>
      You will have to use SIGUSR2 as long as you run from gst-launch.
      Programmatically(sp?) creating your pipeline and performing
      GST_STATE_PAUSED, READY or NULL will get the result you desire.<br>
      <br>
      So, yeah. You're stuck with SIGUSR2 as long as you use a TIxxxx
      element in your pipeline. Maybe you should cross post to the TI
      forum. It's a long shot but maybe they'll add a bit more state
      change detection for that thread. We'd all benefit from it.<br>
      <br>
      <font face="Calibri"><a
href="https://gforge.ti.com/gf/project/gstreamer_ti/forum/?action=ForumBrowse&forum_id=187">https://gforge.ti.com/gf/project/gstreamer_ti/forum/?action=ForumBrowse&forum_id=187</a>
      </font><br>
      <br>
      Emile<br>
      <br>
      On 8/18/2012 1:18 PM, jlancaster wrote:<br>
    </div>
    <blockquote cite="mid:1345321093677-4655991.post@n4.nabble.com"
      type="cite">
      <pre wrap="">Here's a different question or topic:

In my Linux embedded app, using the TI 814x processor and TI's SDK, I use
callback functions from a library to control gstreamer actions such as play,
pause, record, playback, etc.

In rare instances I need to remove the app using SIGTERM. This removes the
app and the gstreamer callback library. If gstreamer is not doing anything
it all works just dandy, gstreamer functions are restored again on app start
up.

However, if I happen to be live streaming cameras while SIGTERM is executed,
then gstreamer does not go down very gracefully and I need to reboot to get
all the functionality restored.

If I used SIGUSR2 rather than SIGTERM everything goes down nicely and the
functionality is also restored. Perhaps this is my solution, to use SIGUSR2,
but it is also very curious to me.

Question: Does gstreamer use any of the system SIGxxx functions to terminate
pipelines or any other functions?

Are there any theories why a SIGTERM on our app would hang gstreamer
functions if gstreamer happens to be running?

If so, can we override those function which use SIG utilities?

-Jeff.





--
View this message in context: <a class="moz-txt-link-freetext" href="http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-and-SIGTERM-SIGUSR2-tp4655991.html">http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-and-SIGTERM-SIGUSR2-tp4655991.html</a>
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
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>
    <br>
  </body>
</html>