Skip to content

Commit

Permalink
chore: Fix pipeline stop condition in OBCameraNode
Browse files Browse the repository at this point in the history
  • Loading branch information
jian-dong committed May 13, 2024
1 parent ae814c5 commit fe06e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ob_camera_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ void OBCameraNode::startIMU(const stream_index_pair& stream_index) {

void OBCameraNode::stopStreams() {
std::lock_guard<decltype(device_lock_)> lock(device_lock_);
if (enable_pipeline_) {
if (enable_pipeline_ && pipeline_ && pipeline_started_) {
CHECK_NOTNULL(pipeline_.get());
try {
pipeline_->stop();
Expand Down

0 comments on commit fe06e19

Please sign in to comment.