mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 10:30:40 +00:00
Fix indentation of let-else blocks
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1308>
This commit is contained in:
parent
de6d2e7f40
commit
8d433761d1
4 changed files with 24 additions and 8 deletions
|
@ -1719,7 +1719,9 @@ impl TranslateSrcPad {
|
|||
.to_stream_time(state.out_segment.position())
|
||||
};
|
||||
|
||||
let Some(stream_time) = stream_time else { return false };
|
||||
let Some(stream_time) = stream_time else {
|
||||
return false;
|
||||
};
|
||||
q.set(stream_time);
|
||||
|
||||
true
|
||||
|
|
|
@ -261,7 +261,9 @@ impl TranscriberStream {
|
|||
|
||||
let discont_offset = self.discont_offset_tracker.lock().unwrap().discont_offset;
|
||||
|
||||
let Some(item) = TranscriptItem::from(item, self.lateness, discont_offset) else { continue };
|
||||
let Some(item) = TranscriptItem::from(item, self.lateness, discont_offset) else {
|
||||
continue;
|
||||
};
|
||||
gst::debug!(
|
||||
CAT,
|
||||
imp: self.imp,
|
||||
|
|
|
@ -228,7 +228,9 @@ impl Signaller {
|
|||
Ok(credentials) => credentials,
|
||||
};
|
||||
|
||||
let Some(channel_name) = settings.channel_name else { anyhow::bail!("Channel name cannot be None!"); };
|
||||
let Some(channel_name) = settings.channel_name else {
|
||||
anyhow::bail!("Channel name cannot be None!");
|
||||
};
|
||||
|
||||
let client = Client::new(
|
||||
&aws_config::from_env()
|
||||
|
@ -243,11 +245,15 @@ impl Signaller {
|
|||
.send()
|
||||
.await?;
|
||||
|
||||
let Some(cinfo) = resp.channel_info() else { anyhow::bail!("No description found for {channel_name}"); };
|
||||
let Some(cinfo) = resp.channel_info() else {
|
||||
anyhow::bail!("No description found for {channel_name}");
|
||||
};
|
||||
|
||||
gst::debug!(CAT, "Channel description: {cinfo:?}");
|
||||
|
||||
let Some(channel_arn) = cinfo.channel_arn() else { anyhow::bail!("No channel ARN found for {channel_name}"); };
|
||||
let Some(channel_arn) = cinfo.channel_arn() else {
|
||||
anyhow::bail!("No channel ARN found for {channel_name}");
|
||||
};
|
||||
|
||||
let config = SingleMasterChannelEndpointConfiguration::builder()
|
||||
.set_protocols(Some(vec![ChannelProtocol::Wss, ChannelProtocol::Https]))
|
||||
|
|
|
@ -2234,8 +2234,12 @@ impl BaseWebRTCSink {
|
|||
|
||||
RUNTIME.spawn(async move {
|
||||
while let Some(msg) = bus_stream.next().await {
|
||||
let Some(element) = element_clone.upgrade() else { break; };
|
||||
let Some(pipeline) = pipeline_clone.upgrade() else { break; };
|
||||
let Some(element) = element_clone.upgrade() else {
|
||||
break;
|
||||
};
|
||||
let Some(pipeline) = pipeline_clone.upgrade() else {
|
||||
break;
|
||||
};
|
||||
let this = element.imp();
|
||||
match msg.view() {
|
||||
gst::MessageView::Error(err) => {
|
||||
|
@ -2543,7 +2547,9 @@ impl BaseWebRTCSink {
|
|||
.pad
|
||||
.property::<gst_webrtc::WebRTCRTPTransceiver>("transceiver");
|
||||
|
||||
let Some(ref stream_name) = webrtc_pad.stream_name else { continue; };
|
||||
let Some(ref stream_name) = webrtc_pad.stream_name else {
|
||||
continue;
|
||||
};
|
||||
|
||||
if let Some(mid) = transceiver.mid() {
|
||||
state.mids.insert(mid.to_string(), stream_name.clone());
|
||||
|
|
Loading…
Reference in a new issue