mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 17:40:47 +03:00
Avoid ugly error if pipeline creation fails
This commit is contained in:
parent
fd479a91be
commit
c370dd8313
1 changed files with 4 additions and 2 deletions
|
@ -1106,8 +1106,10 @@ WebRTCSession::end()
|
||||||
gst_element_set_state(pipe_, GST_STATE_NULL);
|
gst_element_set_state(pipe_, GST_STATE_NULL);
|
||||||
gst_object_unref(pipe_);
|
gst_object_unref(pipe_);
|
||||||
pipe_ = nullptr;
|
pipe_ = nullptr;
|
||||||
g_source_remove(busWatchId_);
|
if (busWatchId_) {
|
||||||
busWatchId_ = 0;
|
g_source_remove(busWatchId_);
|
||||||
|
busWatchId_ = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
webrtc_ = nullptr;
|
webrtc_ = nullptr;
|
||||||
isVideo_ = false;
|
isVideo_ = false;
|
||||||
|
|
Loading…
Reference in a new issue