Avoid ugly error if pipeline creation fails
This commit is contained in:
parent
fd479a91be
commit
c370dd8313
|
@ -1106,9 +1106,11 @@ WebRTCSession::end()
|
|||
gst_element_set_state(pipe_, GST_STATE_NULL);
|
||||
gst_object_unref(pipe_);
|
||||
pipe_ = nullptr;
|
||||
if (busWatchId_) {
|
||||
g_source_remove(busWatchId_);
|
||||
busWatchId_ = 0;
|
||||
}
|
||||
}
|
||||
webrtc_ = nullptr;
|
||||
isVideo_ = false;
|
||||
isOffering_ = false;
|
||||
|
|
Loading…
Reference in New Issue