Dynamic Replacement of a source element in pipeline

lorenzo.m lorenzo at muscariello.com
Tue Sep 17 09:22:05 UTC 2019


Hi Pascal,
thank you for your reply.
I've tried two different paths to achieve this (limiting the example to the
video part / audio is completely discarded) starting from a common approach:

the common approach consists on dynamic linking the new created uridecodebin
element to the rest of the pipeline capturing the pad-added singals on this
element; as soon as the element adds a pad of type video/x-raw this is
linked to the sink pad of the videoconvert element and if the link is
successful:

1 - Pipeline seeking: 
seeking to 0 doing
gst_element_seek(pipeline,1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH,
                         GST_SEEK_TYPE_SET, 0,
                         GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE)

this works as expected, but is pushing the pipeline back to 0.

2 - Setting the offset on the pad just added:

      gst_pad_set_offset(new_pad,0);

this is not working at all. 

What I'm missing?
Thanks in advance,

Kind Regards
Lorenzo




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list