[Bug 779484] Allow pipelines to be shared between media

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Mar 4 09:18:45 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=779484

--- Comment #2 from Nick Kallen <socialmediamaster9000 at gmail.com> ---
Created attachment 347193
  --> https://bugzilla.gnome.org/attachment.cgi?id=347193&action=edit
Add setting to indicate pipeline is shared; Media do not manipulate state of
shared-pipelines

I like this approach better although the change is more drastic.

There is a new setting, 'shared-pipeline', that tells the media not to
manipulate the pipeline's state nor rely on the pipeline's state changes (e.g.,
in handle_message) for its own internal state. This allows different media to
share a live pipeline.

In order for this to work correctly, the media needs to manipulate the state of
its rtpbin and the various elements added by the stream, which would otherwise
have inherited the state changes from the pipeline. To keep the code simple,
these elements are added to the bin the user provides (i.e., the media's
element) rather than adding them to the pipeline. Then simply changing the
bin's state keeps everything in sync.

I also fixed what I think was a bug in `gst_rtsp_media_unprepare`, where the
media would never be unprepared if it was in the suspend state, but going into
the suspend state is a normal part of disposing of the media.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list