Trouble removing a sink from a playing pipeline

Stefan Sauer ensonic at hora-obscura.de
Fri Oct 7 00:50:58 PDT 2011


On 10/06/2011 11:53 PM, Tal Liron wrote:
> On 01/-10/-28163 01:59 PM, Victor Manuel Jáquez Leal wrote:
>> If you have to set to NULL state your element before it is unlinked
>> from the pipeline, I guess you have a buggy element.
>>
>> Check out this document:
>>
>> http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/design/part-block.txt
>>
> Thanks, I am aware of that document, but it's not the issue -- my
> problem is removing the element, not unlinking it. Here is the error
> message:
>
>    GStreamer-CRITICAL **:
>    Trying to dispose element branch1, but it is in PLAYING (locked)
>    instead of the NULL state.
>    You need to explicitly set elements to the NULL state before
>    dropping the final reference, to allow them to clean up.
>    This problem may also be caused by a refcounting bug in the
>    application or some element.

you need to block the src pad of the previous element, unlink, set the
sink to NULL and dispose the sink. But you have to set the sink to NULL
before disposing. This won't have any effect on the rest of the
pipeline, are you indeed only doing the state-change on the sink?

Stefan
>
>
>
> The elements I use are all standard GStreamer, nothing custom.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list