diff --git a/net/webrtchttp/src/whipsink/imp.rs b/net/webrtchttp/src/whipsink/imp.rs index 1b3f5b65..c3a08d59 100644 --- a/net/webrtchttp/src/whipsink/imp.rs +++ b/net/webrtchttp/src/whipsink/imp.rs @@ -130,11 +130,12 @@ impl ElementImpl for WhipSink { fn request_new_pad( &self, - templ: &gst::PadTemplate, + _templ: &gst::PadTemplate, name: Option<&str>, caps: Option<&gst::Caps>, ) -> Option { - let wb_sink_pad = self.webrtcbin.request_pad(templ, name, caps)?; + let webrtcsink_templ = self.webrtcbin.pad_template("sink_%u").unwrap(); + let wb_sink_pad = self.webrtcbin.request_pad(&webrtcsink_templ, name, caps)?; let sink_pad = gst::GhostPad::builder(gst::PadDirection::Sink) .name(wb_sink_pad.name()) .build();