mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-05 15:42:21 +00:00
Rename the new-webrtcbin
signal to consumer-added
For symmetry with the new `consumer-removed` signal.
This commit is contained in:
parent
36eb00121c
commit
4e0e8d1cc3
1 changed files with 4 additions and 4 deletions
|
@ -1724,7 +1724,7 @@ impl WebRTCSink {
|
||||||
}
|
}
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
element.emit_by_name::<()>("new-webrtcbin", &[&peer_id, &webrtcbin]);
|
element.emit_by_name::<()>("consumer-added", &[&peer_id, &webrtcbin]);
|
||||||
if settings.enable_data_channel_navigation {
|
if settings.enable_data_channel_navigation {
|
||||||
state.navigation_handler = Some(
|
state.navigation_handler = Some(
|
||||||
NavigationEventHandler::new(&element, &webrtcbin)
|
NavigationEventHandler::new(&element, &webrtcbin)
|
||||||
|
@ -2468,15 +2468,15 @@ impl ObjectImpl for WebRTCSink {
|
||||||
static SIGNALS: Lazy<Vec<glib::subclass::Signal>> = Lazy::new(|| {
|
static SIGNALS: Lazy<Vec<glib::subclass::Signal>> = Lazy::new(|| {
|
||||||
vec![
|
vec![
|
||||||
/*
|
/*
|
||||||
* RsWebRTCSink::new-webrtcbin:
|
* RsWebRTCSink::consumer-added:
|
||||||
* @peer_id: Identifier of the peer associated with the consumer added
|
* @consumer_id: Identifier of the consumer added
|
||||||
* @webrtcbin: The new webrtcbin
|
* @webrtcbin: The new webrtcbin
|
||||||
*
|
*
|
||||||
* This signal can be used to tweak @webrtcbin, creating a data
|
* This signal can be used to tweak @webrtcbin, creating a data
|
||||||
* channel for example.
|
* channel for example.
|
||||||
*/
|
*/
|
||||||
glib::subclass::Signal::builder(
|
glib::subclass::Signal::builder(
|
||||||
"new-webrtcbin",
|
"consumer-added",
|
||||||
&[
|
&[
|
||||||
String::static_type().into(),
|
String::static_type().into(),
|
||||||
gst::Element::static_type().into(),
|
gst::Element::static_type().into(),
|
||||||
|
|
Loading…
Reference in a new issue