AW: How hard can it be to change filesrc location runtime

Thornton, Keith keith.thornton at zeiss.com
Tue Aug 10 11:37:01 UTC 2021


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/20210810/225bd1c4/attachment.htm>


More information about the gstreamer-devel mailing list