diff --git a/src/ob_camera_node.cpp b/src/ob_camera_node.cpp index f25cd1ac..05c09dc1 100644 --- a/src/ob_camera_node.cpp +++ b/src/ob_camera_node.cpp @@ -399,7 +399,7 @@ void OBCameraNode::startIMU(const stream_index_pair& stream_index) { void OBCameraNode::stopStreams() { std::lock_guard lock(device_lock_); - if (enable_pipeline_) { + if (enable_pipeline_ && pipeline_ && pipeline_started_) { CHECK_NOTNULL(pipeline_.get()); try { pipeline_->stop();