Skip to content

Commit

Permalink
* fix rtmp not release hardware resource
Browse files Browse the repository at this point in the history
  • Loading branch information
lxowalle committed Nov 29, 2024
1 parent 8dc8597 commit 94696ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/vision/port/maixcam/maix_rtmp_maixcam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,11 @@ namespace maix::rtmp {
log::info("wait rtmp thread exit..");
}

if (_video_encoder) {
delete _video_encoder;
_video_encoder = nullptr;
}

return err::ERR_NONE;
}
}

0 comments on commit 94696ac

Please sign in to comment.