<span style>I'm having similar problems, with pipelines failing when their creation overlap, and always succeeding otherwise.</span><div><font color="#222222" face="arial, sans-serif"><br></font><div><font color="#222222" face="arial, sans-serif">What errors do you get if you enable DEBUG logs?</font></div>
<div><font color="#222222" face="arial, sans-serif">What gstreamer versions are you using?<br></font><div><br><div class="gmail_quote">On Thu, Mar 22, 2012 at 00:51, Gary Thomas <span dir="ltr"><<a href="mailto:gary@mlbassoc.com">gary@mlbassoc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 2012-03-21 17:00, Tim-Philipp Müller wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, 2012-03-21 at 16:39 -0600, Gary Thomas wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm trying to build a Python (GUI) application which will need<br>
multiple gstreamer pipelines active simultaneously. I'm using<br>
wxPython as the basis for my GUI. Currently, I have a window<br>
which has multiple (4) sub-panes. If I try to create a pipeline<br>
for each of those panes, sometimes it works, more often it fails,<br>
typically with glib or free() errors which tells me this is a<br>
multi-thread-safe problem.<br>
<br>
Is this the right place to get help for my issue?<br>
Is there something special, wrt threads, that I need to do to<br>
make my application safe?<br>
</blockquote>
<br>
So you're displaying 4 videos from 4 pipelines in that window, one per<br>
pane?<br>
</blockquote>
<br></div>
Let's make sure we agree on terminology<br>
window = Top level X window (the kind of thing that can be minimized, etc)<br>
pane = a writeable subsurface within the window (which has a unique ID)<br>
<br>
If we agree, then yes, that's what I want to do. I've found that if I start<br>
the videos separately, i.e. in "human" time by selecting and clicking, then<br>
everything works well. It only fails if I try to create the pipelines all<br>
at once whilst creating the basic window+panes.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What do you use as video sink(s)?<br>
</blockquote>
<br></div>
Not sure I understand the question. I'm adapting some code I found<br>
on the web which uses gst pipelines + wxPython (which was adapted from<br>
the wxGTK version).<br>
<br>
I create the pipeline like this<br>
self.player = gst.element_factory_make("<u></u>playbin", "player")<br>
self.playing = False<br>
bus = self.player.get_bus()<br>
bus.add_signal_watch()<br>
bus.enable_sync_message_<u></u>emission()<br>
bus.connect('message', self.on_message, colour)<br>
bus.connect('sync-message::<u></u>element', self.on_sync_message, colour)<br>
within the code that creates the pane. Then I initiate the pipeline with<br>
self.player.set_property('uri'<u></u>,"file://" + path)<br>
self.player.set_state(gst.<u></u>STATE_PLAYING)<br>
self.playing = True<br>
<br>
I'm happy to share my actual code if that helps - it's currently just<br>
a sandbox for ideas anyway.<br>
<br>
Thanks for your help<div class="im HOEnZb"><br>
<br>
-- <br>
------------------------------<u></u>------------------------------<br>
Gary Thomas | Consulting for the<br>
MLB Associates | Embedded world<br>
------------------------------<u></u>------------------------------<br></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<u></u>freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/gstreamer-<u></u>devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Saludos,<br> Bruno González<br><br>_______________________________________________<br>Jabber: stenyak AT <a href="http://gmail.com" target="_blank">gmail.com</a><br>
<a href="http://www.stenyak.com" target="_blank">http://www.stenyak.com</a><br>
</div></div></div>