How hard can it be to change filesrc location runtime

marc lievens mark.lievens at gmail.com
Wed Aug 11 02:28:59 UTC 2021


Hi
I already tried this with posting a message and change the pipeline status
to ready and unlinking/linking the decodebin and change of file location
and set back status of pipeline to playing.
I also tried this with unlinking/lining the filesrc with/without previous
one.

Thx ,
marc

Op di 10 aug. 2021 om 14:45 schreef Thornton, Keith via gstreamer-devel <
gstreamer-devel at lists.freedesktop.org>:

> Hi,
>
> Probes are called from the streaming thread and in this thread you can’t
> change the state of the pipeline. Can you not change the state to READY
> from a different thread, change the location and then change the state to
> PLAYING.
>
> Gruesse
>
>
>
> *Von:* gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> *Im
> Auftrag von *marc lievens via gstreamer-devel
> *Gesendet:* Dienstag, 10. August 2021 12:14
> *An:* gstreamer-devel at lists.freedesktop.org
> *Cc:* marc lievens <marc.lievens1210 at telenet.be>
> *Betreff:* How hard can it be to change filesrc location runtime
>
>
>
> Hi,
>
>
>
> I seems to overlook something when I change the element filesrc location
> at runtime.
>
>
>
> I tried already to change the location already in different ways and dis
> read the documentation concerning dynamic pipelines
>
>
>
> At this moment I simplified the pipeline to :  filesrc | decodebin|
> autovideosink, but still I seems to do something wrong.
>
>
>
> What I already tried is :
>
>
>
>    - In blocking probe on file source  I changed location with/without
>    filesrc state changes(GST_STATE_NULL and sync with parent )  and pipeline
>    changes ( GST_STATE_READY and GST_STATE_PLAY)
>    - With 2 probes and send eos as explained  in dynamic pipeline
>    documentation , and this with creating new filesrc and/or decodebin.
>    - With posting a message and  change file location when message
>    received to avoid deadlocks
>
>
>
> I  really have no idea what I’m doing wrong or if it is even possible.
>
>
>
> I would appreciate if anyone can point me in the right direction or
> explains me the sequence of actions to take
>
>
>
> Cheers ,
>
> marc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210811/263edade/attachment.htm>


More information about the gstreamer-devel mailing list