playbin as a child element: deadlock when transitioning from PLAYING/PAUSED to NULL
Luis de Bethencourt
luis at debethencourt.com
Wed Jun 3 06:03:40 PDT 2015
I'm glad you fixed this. Before changing state make sure all elements have
a common parent.
Thanks,
Luis
On 1 June 2015 at 05:16, Dustin Spicuzza <dustin at virtualroadside.com> wrote:
> Ok, I played a bit more with this tonight, and I got it working properly
> under 1.4.5! I need to add the playbin to the parent pipeline *before*
> doing anything else with it, otherwise.. well, I'm not quite sure why it
> doesn't work otherwise. After looking at what happens and some of the gst
> code, I theorize that the bus for the pipeline and the pipe need to be the
> same for them to work properly, so you have to add the playbin to the
> pipeline before a bus element gets created for the playbin. There must be
> something in git master that properly synchronizes the bus between the two
> elements, which is why Luis doesn't have any problems?
>
>
> As a bonus, now I don't have to set the playbin state to NULL on stop, I
> can just set the parent pipeline and it works like I would normally expect.
>
>
> Since PlayBin is a Pipeline which is a Gst.Bin/Gst.Element, it seems like
> this should work out... we'll see what other bumps I hit! :)
>
>
> Dustin
>
>
> On May 30, 2015 at 11:54 AM Tim Müller <tim at centricular.com> wrote:
>
> On Sat, 2015-05-30 at 10:38 -0400, Dustin Spicuzza wrote:
>
> Hi Dustin,
>
> If you must use multiple playbins, you could use interaudiosink as
> audiosinks, with a different "channel" name for each.
>
> Then in a separate pipeline you combine everything with interaudiosrc !
> audioconvert ! audioresample and audiomixer ! sink.
>
> That also lets you pause/play pipelines individually if that's something
> you desire.
>
> Cheers
> -Tim
>
> --
> Tim Müller, Centricular Ltd - http://www.centricular.com
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150603/6f22a71e/attachment-0001.html>
More information about the gstreamer-devel
mailing list